- Notifications
You must be signed in to change notification settings - Fork0
License
NotificationsYou must be signed in to change notification settings
alireza1219/repair-ninja
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Repair Ninja simplifies repair tracking and management.
To run the project using Docker Compose, navigate to the project root directory and execute the following command:
docker compose -f docker-compose-dev.yaml upYou can create a new superuser for the application by running the following command:
docker compose -f docker-compose-dev.yaml run --rm dev-api sh -c "python manage.py createsuperuser"Now, you should be able to access the API onhttp://127.0.0.1:8000.
Smtp4dev is also accessible by navigating tohttp://127.0.0.1:5000 in your web browser.
To run the project using Pipenv, follow these steps:
- Navigate to the project root directory in your terminal. Install project dependencies using Pipenv by executing the following command:
pipenv install- Create a
.envfile in the project root directory with the following environment variables:
REPAIR_NINJA_MODE=DEVREPAIR_NINJA_DISABLE_DRF_INPUTS=0 # Set to 1 if you're not happy with DRF inputsREPAIR_NINJA_DB_ENGINE=django.db.backends.mysqlREPAIR_NINJA_DB_NAME=repair_ninja # Database nameREPAIR_NINJA_DB_HOST=localhost # Database hostnameREPAIR_NINJA_DB_PORT=3306 # Database portREPAIR_NINJA_DB_USER=root # Database usernameREPAIR_NINJA_DB_PASSWORD=root # Database passwordREPAIR_NINJA_EMAIL_HOST=localhost # Email hostname (Port is set to 25 by default)- Activate the Pipenv shell by running:
pipenv shell- Apply database migrations by executing:
python manage.py migrate- Finally, start the Django development server by running:
python manage.py runserver 8000Now, you should be able to access the API onhttp://127.0.0.1:8000.
About
No description, website, or topics provided.
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
No releases published
Packages0
No packages published