GithubHelp home page GithubHelp logo

ykankaya / elemental Goto Github PK

View Code? Open in Web Editor NEW

This project forked from angstwad/elemental

0.0 1.0 0.0 236 KB

A MVC-style project base for Flask applications

License: Apache License 2.0

Python 61.97% HTML 38.03%

elemental's Introduction

Elemental

A Flask MVC-style application base.

Purpose

Elemental was written to provide my most basic needs in public-facing Flask apps. A quick rundown of what it provides:

  1. A signup, login, logout and hello world view
  2. User-related code is dependent on flask-login and uses bcrypt for passwords
  3. MongoDB as a backend with MongoEngine as the ODM
  4. flask-admin to provide quick admin views of MongoDB collections
  5. flask-wtf for forms
  6. A common ancestor template (header.html) to inherit, which provides Bootstrap (and a navbar) and jQuery
  7. A basic, logical separation of the application inspired by the MVC software pattern.

Use

Be sure to edit the elemental/config/config.py file to settings that suit your environment. Primarily, be sure to change the MONGO_SETTINGS['host'] setting in config.py.

The Flask development server can be invoked from a Python environment that has installed the requirements in requirements.txt.

$ python runapp.py

I wrote Elemental with the intent of running derivative apps with Gunicorn in production.

Dependencies:

  • flask-login
  • flask-admin
  • flask-debugtoolbar
  • flask-mongoengine
  • flask-bcrypt
  • flask-wtf

License

Apache 2.0

elemental's People

Contributors

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