Skip to content

A Django project template equipped with Docker containers and convenient make commands for streamlined setup, providing a ready-to-use foundation for initiating your own Django project.

Notifications You must be signed in to change notification settings

VeshRaazThapa/Django-Clean-Architecture-Boilerplate

Repository files navigation

Basic Usage

  1. First run make newdev to start up the project for first time.
  2. go to http://localhost:5001/admin
  3. username:admin76, password:admin76 Checkout the commands section for more usage.

initial setup

1.run make bud(this builds the docker project) 2.run make dr

Alternatively: run make newdev

Preview

A default Django project resides in root directory. So, when you start the project, you will see the following screen in 5001 port: http://localhost:5001/

Commands

To use this project, run this commands:

  1. make newdev to build the project and use the backup dump_data.sql in the root folder
  2. make b to build the project and starting containers.
  3. make bud to build the project.(build and up in detached mode)
  4. make u to start containers if project has been up already.
  5. make d to stop containers.
  6. make dv to stop containers and remove volumes.
  7. make sweb to shell access web container.
  8. make csu to put static files in static directory.
  9. make nrw to run npm run watch.
  10. make nrp to run npm run production.
  11. make lw to log access web container.
  12. make ld to log access db container.
  13. make rs to restart web and db container.
  14. make dd to dumb db container as dump_data.sql in the root directory.
  15. make dr to restore db container data from dump_data.sql file in the root directory.
  16. make udev to start container in development mode (when container seem to be slow, this will help run little faster).

About

A Django project template equipped with Docker containers and convenient make commands for streamlined setup, providing a ready-to-use foundation for initiating your own Django project.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published