Giter Site home page Giter Site logo

labzero's Introduction

cookiecutter Django project templates for LaLoka Labs.

Usage

cookiecutter gh:lalokalabs/labzero

That will generate new directory <your_project_name>.

cd <your_project_name>
poetry install
poetry run <your_project_name> manage runserver
nvm use 14.17.1
npm install

Python dependencies manager is using Poetry. Make sure to add generated poetry.lock to your source control system.

Frontend Stack

Refer FE for more details.

Structure

Main application code should be in src/<your_project_name>/ - this will be your "django project and app".

├── package.json
├── pyproject.toml
├── src
│   └── myapp
│       ├── __init__.py
│       ├── settings.py
│       ├── urls.py
│       └── wsgi.py
├── sub-src
│   └── myapp_cli
│       ├── myapp_cli
│       │   └── __init__.py
│       └── setup.py
├── tailwind.config.js
└── webpack.mix.js

sub-src/ directory is a workaround due to poetry not installing console_scripts entry-ppoints as real script and causing issue with django runserver command.

Read more details of the project setup here.

Deployment

Labzero based project can be deployed using webship.

On production, all cli should be accessed through /app/<project_name>/current/.venv/bin/. For example:-

/app/myapp/current/.venv/bin/myapp manage shell

labzero's People

Contributors

fathur-lalokalabs avatar k4ml 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.