Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 1.76 KB

README.md

File metadata and controls

57 lines (38 loc) · 1.76 KB

Singsaker Studenterhjem Internal Dashboard

Screenshot 2022-04-06 at 17 20 16 Screenshot 2022-04-06 at 17 21 55 Screenshot 2022-04-06 at 17 21 21 Screenshot 2022-04-06 at 17 21 39

Getting Started

These instructions will give you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on deploying the project on a live system.

Installing

Clone the repository to your local machine

git clone https://github.com/singsaker/intern.git

Create /backend/.env.development

SECRET_KEY=<INSERT_DJANGO_SECRET_KEY>

Build Docker images

docker compose build

Run project

docker compose up
docker compose exec backend python manage.py makemigrations
docker compose exec backend python manage.py migrate

Load initial data

docker compose exec backend python manage.py loaddata initial_data
docker compose exec backend python manage.py loaddata members

This command pushes initial data from fixtures and default superuser:

Username Password
admin password

Backend admin is accessed at localhost:8000/admin with graphQL endpoint localhost:8000/graphql. Frontend runs on localhost:3000