API and Back-end server for Change Companies Media
$ npm install
Set your database connection in .env
DATABASE_URL="mysql://<user>:<password>@localhost:3306/tccmedia?schema=public"
Sync database
$ npx prisma migrate
$ npx prisma generate
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Push schema changes to development database
npx prisma db push
Use this to space out your migrations when making lots of changes
Database / ORM MySQL 5.7 Prisma 2: https://docs.nestjs.com/recipes/prisma
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.