- Clone Repository
- install Docker
- install nginx (optional)
Ensure MongoDB instance is running and run development mode
> yarn start
For production run
yarn build:prod
PORT=8080 NODE_ENV=production HOST=52.72.2.200 pm2 start ecosystem.json
With Docker, builds up with node and mongo
> docker-compose up --build # IMPORTANT Omit the --build if not the first build
Services
| Code | Name |
|---|---|
| 00 | Sites |
| 01 | Accesses |
| 02 | Vehicular Flow |
| 03 | Perimeter |
| 04 | Facial Recognition |
| 05 | CCTV |
Access
| Code | Name |
|---|---|
| 0 | Guest |
| 1 | Company user |
| 2 | Company admin |
| 3 | Company register |
| 4 | Connus user |
| 5 | Connus admin |
Environment Variables
| Name | Default |
|---|---|
| MONGODB_URL | mongodb://localhost:27017/kawlantid |
| NODE_ENV | development |
| HOST | 0.0.0.0 |
| PORT | 8080 |
Brief Documentation
| Folder | Description |
|---|---|
| config | This folder contains all files related to configuration. From database URI, NGINX.conf, webpack configuration for all environments and other server configuration files |
| lib | Files that are used for external services or processes. Rekognition.py is contained in here |
| models | All MongoDB schemas are contained in here |
| resources | Files which help to develop or understand the application |
| router | API's related files |
| src | All JS client-source files |
| static | All static files. Images, icons, and other related static files |
API https://documenter.getpostman.com/view/596007/RVncdboE
FRM Mobile https://documenter.getpostman.com/view/596007/RVtvpsRv
MIT