An open API service indexing awesome lists of open source software.

https://github.com/the2alert/kinopoisk-backend


https://github.com/the2alert/kinopoisk-backend

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

Kinopoisk backend


Installing


Preliminary requirements:



Installing dependencies:


npm i

Building


Compile code:


npm run build

Starting


Starting in production mode:


npm start

Starting in development mode:


npm run dev

Starting in development mode (with MYSQL Server):


make run-dev

Stopping MYSQL Server:


make stop-dev

Environment variables


List of variables:




  • NODE_ENV - Application mode.


  • PORT - Server port listening. Default: 80.


  • DATABASE_HOST - Database host. Default: localhost.


  • DATABASE_USER - Database user. Default: root.


  • DATABASE_PASSWORD - Database password. Default: qwerty123.


  • DATABASE_BASE - Database base. Default: contacts-app.


Dotenv support is present!


Deploy


Building image:


make build

Pushing image:


make push

Pulling image:


make pull

Staring image:


make run

Stopping image:


make stop

Stack









License


MIT