Helping newcomers find services perfect for them!
Before starting the database, clone the .env.sample file in /backend and replace POSTGRES_PASSWORD with your choice of password.
You also must have Docker running on your device.
To get the database setup, run the following commands:
cd backend
docker-compose up -dThe database should now be running at localhost:5332, based on how this is configured for your machine.
Next, install dbmate. To create new migrations, run
dbmate new insert_migration_nameand update the file created in /backend/db/migrations. Once finished updating this file, run
dbmate upto apply the migrations.
To start the backend, you must have Python 3.9 installed. Start a virtual environment if desired:
python -m venv env
./env/Scripts/activateand install all dependencies to start the project:
pip install -r requirements.txt
python app.pyand you should have the backend running!
To start the frontend, you must have Node installed. Navigate to the frontend fold and install all dependencies:
npm run installand start up the frontend on localhost:
npm run dev