REST API for Ngariung app.
Make sure you're aleready install NodeJS, MongoDB (or use the cloud service such as Atlas) and Yarn. After that run this several command.
- Add project
$ git clone https://github.com/jurnalanas/riungnode.git
$ cd riungnode
$ cp env.sample .env # adjust the value in it as needed
$ yarn # install all dependencies
- Run local server
# local server will run at local.host:5000 (configurable on .env)
$ yarn dev
- Build asset
$ yarn build
- Run production mode
$ yarn start # server will run at port 5000
yarn dev
- Run local serveryarn build
- Build the serveryarn start
- Run local server with production modeyarn restart
- Restart local server with production modeyarn lint
- Run linteryarn test-routes
- Run unit tests for routesyarn test-models
- Run unit tests for modelsyarn test-controllers
- Run unit tests for controllersyarn test
- Run all unit tests
For all API endpoints, please read in the doc.
- Muhammad Nasrurrohman - @jurnalanas
This project is licensed under the MIT License - see the LICENSE file for details