m2b3 / SciCommons-backend

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Set up Guide

1. Create a Conda Environment

conda create -n <env_name> python=3.12.3

2. Activate the Conda Environment

conda activate <env_name>

3. Install the Required Libraries using poetry

poetry install

4. Create a .env and add the environment variables present in the .env.example file

touch .env
cp .env.example .env

5. Apply Database Migrations

poetry run python manage.py migrate

6. Run the Server

poetry run python manage.py runserver

6. Run Docker locally

docker compose -f docker-compose.dev.yml up

# To run in detacked mode:
docker compose -f docker-compose.dev.yml up -d

You can now access the server at http://localhost:8000/ and API documentation at http://localhost:8000/api/docs/

About


Languages

Language:Python 63.6%Language:JavaScript 19.1%Language:CSS 15.9%Language:HTML 1.3%Language:Dockerfile 0.1%