/video-learning-api

API for Video Learning Platform

Primary LanguageTypeScript

tcc-media

API and Back-end server for Change Companies Media

Installation

$ 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

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Development

Push schema changes to development database

npx prisma db push

Use this to space out your migrations when making lots of changes

Libraries

Database / ORM MySQL 5.7 Prisma 2: https://docs.nestjs.com/recipes/prisma

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

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.

Stay in touch

License

Nest is MIT licensed.