Server side for Gleam iOS app
This is a server that provides RESTful API for Gleam iOS app. It allows users to choose the nearest clinic and visit a doctor to check their diagnosis.
Also, it includes a simple web viewer for sent forms - so that admins can view what users send.
Server written in: Node.js + TypeScript + PostgreSQL
Web viewer: Vue.js
To start the server using Docker, do:
- Create a
client/.htpasswdauth file using command:$ htpasswd -c client/.htpasswd.(htpasswdis part of Apache) - Create a
config.yamlfile with the following contents:
database:
host: postgres
- If necessary, change the public port for nginx in
docker-compose.yml. - Run:
$ docker-compose up --build -d
- Visit
http://<your-host>:<nginx-port>/to make sure that it works.
To develop or start without Docker, you will need:
- Node.js;
- npm;
- PostgreSQL.