Backend for 62597 Course at DTU
To try our REST API, you can use the following URLs:
- https://dtu-api.herogamers.dev/api - This is the URL for our ASP.NET REST API. You can send HTTP requests to this URL to interact with our API endpoints.
To try our webshop and dashboards, use the following URLs:
- https://dtu.herogamers.dev - This is the URL for our frontend webshop, developed as part of our front end course. You can browse the webshop and place orders using this URL.
- https://dtu-grafana.herogamers.dev - This is the URL for our Grafana dashboard. You can use this dashboard to monitor various metrics related to our system.
- https://dtu-prometheus.herogamers.dev - This is the URL for our Prometheus dashboard. You can use this dashboard to view detailed metrics about our system.
Follow the following steps to start the backend, or just run it locally:
- Go into the
appandmonitoringdirectories, and copy the environment files, and change the extension from*.env.exampleto*.env. Modify the files as needed. - Modify
proxy/docker-compose.ymlto point at the correct directory for the SSL certificates, or place your SSL certificates in/home/project/sslon your host machine, and put the private key inprivate/key.pemand the public key incerts/cert.pem. - If running the backend on another domain, change the Nginx configuration files (
proxy/nginx/conf.d/servers/*.conf) to listen to another domain (NOT NEEDED WHEN RUNNING LOCALLY!!!). - Install the Docker Engine and docker-compose, if not installed already.
- Run
sh ./start.shto start all the services in the backend. - You can now access the backend on
localhost:3000. - Bonus: If you want to access Grafana locally too, then add a new server listener in
proxy/nginx/conf.d/servers/dtu-grafana.conf, and add the port mapping toproxy/docker-compose.yml.