This is a monorepo for SCAN Platform. It consists of three main components:
- scan-mariadb
- Database
- scan_api_internal
- Backend-api for scan-app
- scan_api_public
- Public api app
- scan_app
- Web interface for SCAN Platform
- scan-reverse-proxy (nginx)
- Reverse proxy
Below in this ReadMe you find the basics of what is required and how to do it, but if you want a more extensive and detailed instructions for how to setup and configure a SCAN server or how to use it when it is up and running, then the two links just below, will be your friend in the night.
git clone <this repogitory>
git submodule update --init --recursive
You need a docker environment installed with docker-compose. Additionally, the following things are needed.
- You need to set up an auth0 tenant and a Single Page Application. Please refer to the documentation provided by auth0 for the detail general instruction.
- Copy
.env.sampleto.envand edit it properly as instructed and guided by the file comments. Especially, you need to specify the correct auth0 variables (recieved above from Auth0 website). - Copy
scan-reverse-proxy/conf.d/nginx.conf.exampletoscan-reverse-proxy/conf.d/nginx.confand edit it properly (make sure the SSL Certificate files have the correct filenames). - Copy
docker-compose.yml.exampletodocker-compose.ymland edit it properly (basically just make sure the real path to the SSL Certs are correct under the nginx-->volumes section).
> ./start.sh
Then, access http://localhost via web browser. (Wait for seconds until all containers are ready to access...)
Note: If you are accessing your server remotely or for some reason can not use localhost, you must make sure to update all links in .env and Auth0.com accordingly with your requested IP settings
> ./stop.sh
Initially, the database is empty. We provide an example data here.
You may download and import it for test purpose.
To import it, you may
> scan-mariadb/import.sh export.sql