GithubHelp home page GithubHelp logo

rissets / boilerplate Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 26.17 MB

Django boilerplate apps are a collection of apps that can be used to quickly

Python 14.28% JavaScript 10.01% HTML 75.60% Dockerfile 0.10%
boilerplate dashboard django docker postgresql

boilerplate's Introduction

Django CI/CD Workflow

Boilerplate apps

What is this?

Django boilerplate apps are a collection of apps that can be used to quickly. get started with a new Django project. They are designed to be used as a base for a new project. They are not designed to be used as a standalone app.

Why?

I have found that I often start a new project with the same basic setup. I have a base project that I use as a starting point. I then copy the apps I need from that project into the new project. This is a pain and I wanted to make it easier.

Setup instructions

  1. Clone the repo
    git clone ...
    
    cd boilerplate
  2. Run in Docker (see below)
  3. Run in Local (see below)
  4. Npm install
    npm install
  5. Run npm build
    npm run build

Setup Django Boilerplate with Docker

  • Build and run the docker container
    docker-compose up -d --build
  • Run the migrations
    docker-compose exec web python manage.py migrate
  • Create a superuser
    docker-compose exec web python manage.py createsuperuser
  • Run the tests
    docker-compose exec web python manage.py test
  • Run the server
    docker-compose exec web python manage.py runserver

Setup Django Boilerplate with Local

  • Create a virtual environment
    python3 -m venv venv
  • Activate the virtual environment
    source venv/bin/activate
  • Install the requirements
    pip install -r requirements.txt
  • Setup Environment Variables and change values as needed
    cp .env.example .env
  • Run the migrations
    python manage.py migrate
  • Create a superuser
    python manage.py createsuperuser
  • Run the tests
    python manage.py test
  • Run the server
    python manage.py runserver

boilerplate's People

Contributors

rissets avatar dependabot[bot] avatar imgbotapp avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.