zine API files.
README.md |
zine API
API server for all zine services.
Installation
- Install Rust
- Clone this repository
- Create
.env
file and edit your environment variables - Fetch required dependencies
cargo fetch
- Run application
cargo run
Environment variables
To run this project, you will need to add the following environment variables to your .env file
-
General
Variable name Description Default Required HOST
API host 127.0.0.1 false PORT
Port to listen to 8080 false LOG_LEVEL
Logging level (e.g. INFO
,WARN
,ERROR
)INFO
false -
Database
Variable name Description Default Required DATABASE_URI
PostgreSQL database URI true alternative solution:
Variable name Description Default Required DATABASE_HOST
PostgreSQL database host 127.0.0.1 false DATABASE_PORT
PostgreSQL database port 5432 false DATABASE_USER
PostgreSQL database user postgres false DATABASE_PASSWORD
PostgreSQL database password "" false Note
If provided,
DATABASE_URI
will always take precedence overDATABASE_{HOST, PORT, USER, PASSWORD}
.
Documentation
If you want to get some informations about our API, just see our wiki!
Feedback
If you have any feedback, issue with our app, or anything related to our app, please reach out to us at zine@sador.me.