This is a comprehensive guide for the "Gerenciamento Loja" project in Nextjs, an example application that implements the basic styling and api integration.
Before getting started, make sure you have the following prerequisites installed on your system:
Follow the steps below to install the project in your development environment:
-
Clone the repository:
git clone https://github.com/LucasTravessa/Gerenciamento-loja.git
-
Navigate to the project directory:
cd Gerenciamento-loja
-
Installing the packages(with PNPM installed on your machine):
pnpm install
-
Running the container with the database:
docker run --name sgl-db -e POSTGRES_PASSWORD=postgres -e POSTGRES_USER=postgres -e POSTGRES_DB=loja -p 5432:5432 -d postgres:alpine
-
Running the prisma migrations(don't forget to setup the .env file):
pnpm db:push
-
Running the database seed:
pnpm db:seed
After installation, you can run the Gerenciamento Loja application with the following command:
pnpm start
The application will be accessible at: localhost:3000
This is a T3 Stack project bootstrapped with create-t3-app
.