https://github.com/davidromanovizc/labour-exchange
A project created for educational purposes. REST API labor exchange on FastAPI with Docker
https://github.com/davidromanovizc/labour-exchange
docker-compose fastapi python rest-api
Last synced: 4 months ago
JSON representation
A project created for educational purposes. REST API labor exchange on FastAPI with Docker
- Host: GitHub
- URL: https://github.com/davidromanovizc/labour-exchange
- Owner: DavidRomanovizc
- License: mit
- Created: 2022-07-01T23:56:00.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-02T00:27:33.000Z (almost 3 years ago)
- Last Synced: 2024-12-31T01:27:40.996Z (6 months ago)
- Topics: docker-compose, fastapi, python, rest-api
- Language: Python
- Homepage:
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Labour Exchange
> A project created for educational purposes. REST API labor exchange on FastAPI with Docker. Also in this project I implemented authentication using JWT tokens
## 🎨 Used technology



## 📝 Installation
#### First check if you have Python installedBefore installing this DatingBot-project you need to check if you have python\
To check if you have python installed, run this command in your terminal:```sh
python -V
```If you get an answer like this, it means that `Python` is installed.
```sh
Python 3.9.5
```#### Fork the Labour-Exchange
```sh
https://github.com/DavidRomanovizc/Labour-Exchange
```#### And install requirements.txt
```sh
pip install -r requirements.txt
```## 🔨 Environment variables
File `.env.dist` rename to `.env` and then put your data in the url
```env
EE_DATABASE_URL="postgresql://PG_USER:PG_PASSWORD@PG_HOST:PG_PORT/PG_NAME"
```
PG_USER - username of the database owner
PG_PASSWORD - password from the database
PG_HOST - IP address of the database
PG_NAME - database nameFile `core/config.py`
```py
SECRET_KEY = config("EE_SECRET_KEY", cast=str,
default="TOKEN")
```
TOKEN generated using the command
```sh
openssl rand -hex 32
```
