Coder Social home page Coder Social logo

todo's Introduction

Flask Todo Application

The entire backend is being powered by Python. I decided to do this project as challenge, for a company that I have intentions in applying too. Took me about 3-4 days to create a simple application with the usage of user authentication, database, and CRUD operation.

Things to implement

Definetevely there are a lot of things that I still need to implement in the application, I've been spending about 2 days in breaking up my folder structure in MVC pattern

Original Structure

| - app.py
| - model.py
| - route.py
| - form.py
| - database.db
| - config.py
| - custom_class/
|    - XP.py
| - template/
|   | - base/
|       - base.html
|   | - dashboard/
|       - create.html
|       - hiscore.html
|       - list.html
|       - complete.html
|    - index.html
|    - login.html
|    - signup.html
| - static/
|   | - img/
|   | - js/
|   | - lib/
|   | - css/

The major issue with this design layout I had was my logic was being mixed with the modes, controllers, views and etc... It was getting a mess, at my app.py, so I decided to break down the components something more duabable.

New Structure

| - app.py
| - database.db
| - config.py
| - route.py
| - models/
|    - __init__.py
|    - user.py
|    - task.py
|    - experience.py
|    - experience_table.py
| - controllers/
|    - __init__.py
|    - task_controller.py
|    - experience_controller.py
| - forms/
|    - __init__.py
|    - login_form.py
|    - register_form.py
|    - task_form.py
| - templates/
|   | - base/
|       - base.html
|   | - dashboard/
|       - create.html
|       - hiscore.html
|       - list.html
|       - complete.html
|    - index.html
|    - login.html
|    - signup.html
| - static/
|   | - img/
|   | - js/
|   | - lib/
|   | - css/

I am still working on the new logic for my web application. I am trying to make a MVC pattern, which is easier to scale in future. I am planning to expand and make it RESTful, therefore my route.py will be split into: view.py and api.py and be registered in Blueprint.

todo's People

Contributors

akiraff2015 avatar

Stargazers

Rob avatar

Watchers

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