# install volta
$ curl https://get.volta.sh | bash
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
- Create and update
.env
file for variables environment
DATABASE_URL="mysql://username:password@host:port/database_name"
- Open
.env
and adjust theDATABASE_URL
environment variable
DATABASE_URL="mysql://username:password@host:port/database_name"
Run the following command to initialize and run MySQL on docker (optional)
$ docker-compose up -d
- Generate prisma schema
$ npm run prisma:generate
- Generate SQL migration files
$ npm run prisma:migrate
- Seeding database
$ npm run seed
Or run the following command to start the database including generate, migrate and seeding
$ npm run start:db