Skip to content

Latest commit

 

History

History
51 lines (27 loc) · 1.23 KB

README.md

File metadata and controls

51 lines (27 loc) · 1.23 KB

In development

Application builded with Django, React and PostgreSQL

For local installation

In the backend directory, create a new vitual environment using venv

python -m venv venv

Activate the environment

source venv/bin/activate

Install the dependencies that django needs

pip install -r ../requirements.txt

In the frontend directory, use the following commands to install the dependencies

yarn install

The command bellow will create the folder "build" and copy it to the backend directory

yarn build

For dockerized installation

In the frontend directory, use the following commands to install the dependencies

yarn install

The command bellow will create the folder "build" and copy it to the backend directory

yarn build

Create the environment variables in a file .env on the root directory

Build the images and the containers

docker compose build && docker compose up -d

Acess the web container and make all the migrations to the database

docker compose exec web sh python manage.py makemigrations python manage.py migrate

Still on the web container, create a django superuser to do CRUD operations on the web interface

python manage.py createsuperuser