Some checks failed
Build and Release Docker Images / create-release (push) Has been skipped
Build and Release Docker Images / build-and-push (./frontend, Dockerfile, my-website-v2_frontend) (push) Failing after 17m1s
Build and Release Docker Images / build-and-push (./backend, task/Dockerfile, my-website-v2_task) (push) Failing after 23m37s
Build and Release Docker Images / build-and-push (./backend, public/Dockerfile, my-website-v2_public) (push) Failing after 21m10s
Backend API
also known as public
What is this?
This is a RESTful API service. Most of the data retrival, requesting, and processing happens here.
Things you should know
Environment variables
public
uses a .env
file at the root of the project. The file takes standard environment variables (like enviroment variables you would put into a .bashrc
or ad-hoc into your shell).
For public
to work properly, please make sure to first create the .env
file, then fill out the following environment variables:
RUST_ENV
- needed for letting the service that we are working in eitherdevelopment
orproduction
DATABASE_URL
- needed for connecting to PostgresREDIS_URL
- needed for connecting to the cache (Redis or Valkey)BASE_URI_WEB
- needed for connecting to the frontend user interface of the system to this service