Sashimi is developed under NUS's School of Computing IS3106 Module. Sashimi is a collective group-buy platform for groceries to be delivered to your doorstop. The tech stack powering Sashimi's backend comprises of Django, Django Rest Framework, PostgreSQL as our RDB.
We are using docker containers for fast local deployment with minimal installations.
Prerequisites | Version | Links |
---|---|---|
Docker Desktop | 19.03.13 | Link |
Clone this repository
git clone [email protected]:ptm108/is3106-project-backend.git
Before you start, get the .env.dev
file from TM or Eliz and place it in the root folder
Ensure that Docker Desktop is up and running.
We will need to build the docker image and deploy it.
Build the docker image:
docker-compose build
Run the docker container:
docker-compose up -d
The backend is accessible at localhost:8000
To access admin panel on Django, you need to create a superuser:
docker-compose exec web python manage.py createsuperuser
Follow the instructions to set up authentication details for the admin panel.
The admin panel is accessible at localhost:8000/admin
To undeploy docker container: (Add -v flag to spin down postgres volume. Warning: database will be wiped)
docker-compose down