Deploy methods of Starting Kit REST API project are given below.
The project can be published in two different ways.
- Docker
- NPM
To publish the project on Docker, go to the project directory and write the following codes;
# deploy project with docker
$ docker-compose up
# install docker database backup
$ cat <sql_filename> | docker exec -i <container_name> mysql -u root --password=root <database_name>
# compile docker files
$ docker-compose build
To publish the project in NPM, go to the project directory and write the following codes;
# package install
$ npm install
# project start
$ npm start
As a developer, to start the project and do the test operations, first go to the project directory and install the packages, then give the necessary command to start the mode.
# package install
$ npm install
# project start
$ npm run start:dev