These instructions will help you set up and run the project on your local machine.
Before you begin, ensure you have met the following requirements:
- Python (version 3.11.x)
- Poetry
- MySQL/MariaDB or PostgreSQL (require re-configuration)
-
Clone the repository:
git clone https://github.com/fokusuma/NBBackend.git
-
Install package:
poetry install
-
Copy and fill the env
cp .env.example .env
-
Run makemigrations
python manage.py makemigrations
-
Run migration
python manage.py migrate
-
Load all fixtures (per module, product as example)
python manage.py loaddata fixtures/product/*.json
-
Create superuser
python manage.py createsuperuser
-
Run the server on localhost:8000 (important: follow the frontend domain)
python manage.py runserver localhost:8000
-
Go to Django admin page
-
Input or import all required master data (important: shipping routes)
Coming soon
Coming soon
Coming Soon
Coming Soon
Coming Soon