This projects was built with NextJS and Prisma as an ORM.
.
├── components
│ ├── ...
├── pages
│ ├── api
│ │ ├── quotes // REST API for quotes
│ ├── quotes
│ │ ├── [id].tsx // edit quotes
| ├── _app.tsx
├── prisma
│ ├── migrations // migrations for the database
│ ├── schema.prisma // database schema
| ├── ...
...
- NodeJS
- Yarn or NPM
- Clone the repo
git clone https://github.com/eliabefranca/wet-bat
- Enter the project folder
cd wet-bat
- Install NPM packages
yarn install
- Create .env file
cp .env.example .env
- Setting up the database
yarn prisma migrate dev --name init
- Running the project
yarn dev
- Building the project
yarn build
- Running the project
yarn start
- Running the project
docker-compose up