Skip to content

xero-q/instashare-backend-django

Repository files navigation

InstaShare (Django v5.1.1)

Steps to run the project containerized

  • Install Docker and Docker Compose

  • Create a file .env in the root folder and set the following environment variables:

    • DB_DATABASE
    • DB_USER
    • DB_PASSWORD
    • DB_PORT
  • Run these commands:

docker-compose build
docker-compose up
  • To stop the project, run:
docker-compose down

Steps to run the project manually

  • First, install the dependencies:
pip install -r requirements.txt
  • You will need a PostgreSQL database server

  • Create a file .env in the root folder and set the following environment variables:

    • DB_HOST
    • DB_DATABASE
    • DB_USER
    • DB_PASSWORD
    • DB_PORT

    pointing to your PostgreSQL database

  • Run the migrations to create the database structure:

python manage.py migrate
  • Install Redis

  • Add another environment variable pointing to your Redis instance: REDIS_URL

  • Run Celery:

 celery -A djangobackend worker --loglevel=INFO
 celery -A djangobackend beat --loglevel=INFO
  • Run the server:
python manage.py runserver

Tests

  • For running tests:
python manage.py test

Frontend repo

The frontend for this Django project is this: Angular frontend.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published