NUWM Backend is server side for React Native Application, which displays lectures timetable for students of the NATIONAL UNIVERSITY OF WATER AND ENVIRONMENTAL ENGINEERING.
- Node.js (v11.14.0) and NPM (v6.7.0)
- MongoDB (v4.0.10-release)
List of available API endpoints is here.
First option is to build the project from source files
- Clone repository
git clone https://github.com/dooptha/nuwm-backend.git - Install MongoDB
- Install Node.js and NPM, we recommend to use NVM
- Install npm packages and start sever on
:3000port
$ npm i && npm startAnother option is to use Docker Compose
- Install Docker Compose
- Start containers and access
:3000port for backend and:27017for MongoDB
$ docker-compose up- IMPORTANT : Use
docker-compose buildto update your images aftergit pull - IMPORTANT : Make sure you are using the right link for MongoDB it should be
mongodb://mongo:27017(see config)