- NodeJs | Install: https://nodejs.org/en/ (If you want run app as docker container don't need this)
- Docker Engine | Install: https://docs.docker.com/engine/install/
- Docker-Compose | Install: https://docs.docker.com/compose/install/
You can start app image with docker-compose.
-
Download Project:
$ git clone https://github.com/erensayar/Crud-Web-App-NodeJs.git
-
Go to project directory:
$ cd Crud-Web-App-NodeJs
-
Then run this command in project directory.
$ docker-compose up
-
Download Project:
$ git clone https://github.com/erensayar/Crud-Web-App-NodeJs.git
-
Go to project directory:
$ cd Crud-Web-App-NodeJs
-
Run The Mongo DB
-
First of all you need start Mongo DB Server & Mongoose to run the web app. I prepared a compose file. You can find in dev-doc directory (./dev-doc/mongo&mongoose-compose-file/docker-compose.yml).
-
Go to compose directory.
$ cd /dev-doc/mongo&mongoose-compose-file
-
Run the compose file.
$ docker-compose up
-
-
Start The App: (In main directory. Don't forget back to main directory.)
$ npm start
-
If you want use nodemon dev tool when developing the app, you can use this command:
$ npm run dev
-
After starting the app, you can use prepared collection for test the API.
You can use postman for test api. Import my collection. And
- Use register service and copy token.
- Then this token paste to root collection directory, so you can use this token for every end point.