This is the documentation for backend for Android APP Warzone Radar for course PA at HKUST COMP 4521.
Node.JS: v14.17.6
MySQL: Ver 8.0.27 for Win64 on x86_64 (MySQL Community Server - GPL)
To have the configs for database and password, please go to the directory of config, and do the following:
-
copy business.config.js from template.business.config.js
-
configure domain in business.config.js
-
copy db.config.js from template.db.config.js
-
configure database setting
-
To install the server
npm install
-
To compile the swgger file
node swagger.js
-
To run the server
node start.js
-
To visit the web for Swagger Documentation, ask for host's ip address, and use http://<-host-ip->:8090/api-docs/ to visit.
This backend use MySQL database. Schemas are at here.
You can visit the automatically generated swagger documentation at here, or once the server is launched, visit the domain:port/api-doc.