GithubHelp home page GithubHelp logo

dev-rijan / flask-todo Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 210 KB

Flask todo application

Shell 0.35% JavaScript 5.05% SCSS 3.82% Python 58.26% Makefile 0.40% Mako 0.65% HTML 31.48%
flask flask-application pyhton todo-app todoapp

flask-todo's Introduction

todos

Clone project from: https://gitlab.com/flask-applications/todos

Copy .env.example and create .env file and change environment variables according to your environment setup.

Run pipenv install : If you encounter pg_config executable not found error in ubuntu then run sudo apt-get install libpq-dev . Details https://tutorials.technology/solved_errors/9-Error-pg_config-executable-not-found.html

Install dependencies: If you have make available in your os then type make install from project root dir. If you don’t have make installed then type the following command one by one.

  • pipenv install (It installs dependencies and also create virtual env for us)
  • cd assets
  • yarn install (You should have yarn installed globally. It install dependencies for frontend)
  • yarn run build (It compiles, minifies and generate compiled js and css file to public dir)
  • cd .. (return to root dir)
  • pipenv run flask digest compile (Flask extension to help make your static files production ready by md5 tagging and gzipping them)

Initialize database: (Assume that you create a database same as defined in DATABASE_URI env variable)

Run pipenv run flask init-db init

Run pipenv run flask init-db seed

Run application: If you have make available in your os then type make run from project root dir. If you don’t have make installed then type the following command.

pipenv run gunicorn -c "python:config.gunicorn" "todos.app:create_app()"

Now your app is available at http://localhost:8000

Seed users: You can generate fake users using pipenv run flask seed users

Login: Now users are created. You can’t register an account for admin from UI. we already created using seeder, credentials for admin user is same as defined in env vars(SEED_ADMIN_USER, SEED_ADMIN_PASSWORD)

flask-todo's People

Contributors

dev-rijan avatar

Stargazers

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