Giter Club home page Giter Club logo

watchlist's Introduction

watchlist web appplication

This is a learning practice, learned from https://github.com/helloflask/watchlist, to develop a flask web application from the very begining:

  • from init python project, init virtual env, init git
  • to build the aplication step by step:
    • the app module, static, template, database, form, login management
    • the unittest and test coverage
    • the project structure enhancement
  • to finally deploy to a remote server: http://hiroo.pythonanywhere.com/index

Screenshot

Project Structure

├── requirements.txt
├── test_watchlist.py
├── watchlist_app
│   ├── __init__.py     # init app
│   ├── commands.py     # db scripts
│   ├── errors.py       # error handling api
│   ├── forms.py        # flask-wtk form
│   ├── models.py       # db models
│   ├── static
│   │   ├── images
│   │   └── style.css
│   ├── templates       # html templates
│   └── views.py        # common api routers
└── wsgi.py

Installation And Running

# clone project
git clone https://github.com/LittleFlyD/watchlist.git

# create virtual env 
# skip..., can refer https://tutorial.helloflask.com/ready/#_4 

# install packages
pip install -r requirements

# forge fake db data
flask forge

# create app user
flask admin
# this cmd will help you to create a user to login the app, cmd output will be like below...
#(.venv)% flask admin
#Username: hiro
#Password: 
#Repeat for confirmation: 
#Updating user...
#Done.


# run app
flask run
* Running on http://127.0.0.1:5000/

watchlist's People

Contributors

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