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
:3000
port
$ npm i && npm start
Another option is to use Docker Compose
- Install Docker Compose
- Start containers and access
:3000
port for backend and:27017
for MongoDB
$ docker-compose up
- IMPORTANT : Use
docker-compose build
to update your images aftergit pull
- IMPORTANT : Make sure you are using the right link for MongoDB it should be
mongodb://mongo:27017
(see config)