Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

License

NotificationsYou must be signed in to change notification settings

alireza1219/repair-ninja

Repository files navigation

Repair Ninja simplifies repair tracking and management.

Development Setup Guide 🧑‍💻

Running with Docker Compose 🐋

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 up

You 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.

Running with Pipenv 🐍

To run the project using Pipenv, follow these steps:

  1. Navigate to the project root directory in your terminal. Install project dependencies using Pipenv by executing the following command:
pipenv install
  1. Create a.env file 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)
  1. Activate the Pipenv shell by running:
pipenv shell
  1. Apply database migrations by executing:
python manage.py migrate
  1. Finally, start the Django development server by running:
python manage.py runserver 8000

Now, you should be able to access the API onhttp://127.0.0.1:8000.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp