Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 870 Bytes

README.md

File metadata and controls

61 lines (44 loc) · 870 Bytes

deti4devs

Frontend

.env file example

VITE_API_URL = http://localhost:8000/

How to run

  1. Install dependencies
npm install
  1. Run the project
npm run dev

Backend

.env file example

SECRET_KEY=<SECRET_KEY> # Generate a secret key with the command: openssl rand -hex 32
ALGORITHM = HS256
ACCESS_TOKEN_EXPIRE_MINUTES = 30

How to run

  1. Create a virtual environment
python3 -m venv venv
  1. Activate the virtual environment
source venv/bin/activate
  1. Install dependencies
pip install -r requirements.txt
  1. Run the project
fastapi dev app/main.py

Docker

To run the application is necessary to have a PostgreSQL database running. You can use the following command to run a PostgreSQL container:

docker compose up database -d