This guide outlines the steps to set up the fomr application, along with configuring a PostgreSQL database.
- Make sure you have Node.js version 14.21.3 or later, npm version 6.14.18 or later installed on your machine, boostrap and Material-UI.
- Navigate to the frontend directory:
cd frontend
- Install dependencies:
npm install
- Instal boostrap:
npm install bootstrap
- Instal Material-UI:
npm install @mui/material @emotion/react @emotion/styled
- Python 3.10 or later installed on your machine
- PostgreSQL 14.11 or later installed and running
- Install PostgreSQL: Follow the official documentation or use your package manager.
- Once PostgreSQL is installed, access the psql command line interface executing the following command on your terminal:
sudo -u postgres psql
- Execute the script provided database_setup.sql
- Navigate to the backend directory:
cd backend
- Create a virtual environment:
python3 -m venv venv
- Activate the virtual environment:
source venv/bin/activate
- Ensure the virtual environment is activated.
- Install dependencies from requirements.txt:
pip install -r requirements.txt
- Create Initial Migrations:
python manage.py makemigrations
- Apply migrations to the database:
python manage.py migrate
- Start the Django development server:
python manage.py runserver
- Start the React development server:
npm start
- Access the frontend at
http://localhost:3000
and the backend athttp://localhost:8000/admin
.