Giter Site home page Giter Site logo

newtongaliza / boilerplate-manager Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jbarsan/boilerplate-manager

0.0 2.0 0.0 799 KB

It is a Django app to generate forms, templates, Api Rest and views for apps of your project.

License: MIT License

Python 15.46% JavaScript 55.90% CSS 19.16% HTML 9.48%

boilerplate-manager's Introduction

Boilerplate Manager

Table of Contents

About

Boilerplate Manager is a Django app to generate forms, templates, API, views for apps of your project. For each app in your project, you create the models and after you can generate all the forms, templates, APIs and views of this app, you will only need to take care of the business rule.

Detailed documentation is in the “docs” directory.

Overview

boilerplate-manager is a well tested, documented, and base management app to generate forms, templates, API, views for apps of your project.

Supported Django and Python versions

Django \ Python 3.5 3.6
2.1 * *

Documentation

Installation

To install boilerplate-manager:

    $ pip install boilerplate-manager

Add core to your INSTALLED_APPS setting:

    INSTALLED_APPS = [
        # other apps
        "core",
    ]

Add core.urls to your project urlpatterns:

from django.urls import include,path

    urlpatterns = [
        # other urls
        path('core/', include('core.urls'), name='core'),
    ]

Run

    $ python manage.py migrate

to create the core models.

Run

    $ python manage.py runserver

to run the server

Visit http://127.0.0.1:8000/core/ to list the apps installed in your project.

Usage

To generate the files of your model, create one app and write your models. The models should extends Base.

Example:

#others imports
from core.models import Base

#Create your models here.
class NameModel(Base):
   ...

After this, run the command to generate the files of the app.

   $ python manage.py build <your_app_name> 

This command will generate all the forms, views, Api Rest and templates for your app based in your models.

To generate the files only one specific model, run this command:

   $ python manage.py build <your_app_name> <your_model_name>

This command will generate all the forms, views, Api Rest and templates for your model.

After this procedure add your app in the main urls of your project:

    urlpatterns = [
        # other urls
        path('core/<your_app>', include('<your_app>.urls'), name='<your_app>'),
    ]

Run

    $ python manage.py migrate

to create the core models.

Run

    $ python manage.py runserver

to run the server

Visit http://127.0.0.1:8000/core/ to list the apps installed in your project.

Built With

  • Django - The high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Bootstrap 4 - The open source toolkit for developing with HTML, CSS, and JS.

Change Log

v1.0.0

  • 🎉 first release!

Contributing

Please read CONTRIBUTING for details on our code of conduct, and the process for submitting pull requests to us.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

boilerplate-manager's People

Contributors

claysllanxavier avatar newtonjgaliza avatar spcoelhojr avatar

Watchers

James Cloos avatar Newton Galiza 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.