Git Product home page Git Product logo

flask-todo-list's Introduction

Here is an API for To do project.

API

๐Ÿ“š Documentation ๐Ÿ“š

Dependencies [pipenv]

The Pipifile and Pipfile.lock files contains info about project dependencies. To install all dependencies form a Pipifile the pipenv package required.

Install the pipenv package:

pip install pipenv

Once pipenv is installed, the following command will create virtual enviroment and install all project dependencies:

pipenv install

Dependencies [pip]

To install all dependencies form a requirements.txt file enter the following command:

pip install -r requirements.txt

Enviroment Variables and starting the server

.flaskenv file contains enviroment variables for flask, such as:

  • FLASK_ENV=development to run server in development mode
  • FLASK_APP=manage to run server from a specific file

So by exporting the last one it becomes possible to run server simply with a command:

flask run

Instead of specifying the file name in a command.

But don't forget to create the database:

flask db_create

There are also .env file in use, whitch wasn't pushed to the repo. This file contains the next varibles:

  • SECRET_KEY= - contains secret key for Flask
  • JWT_SECRET_KEY= - contains secret key for Flask-JWT-Extended

Code

The ~src folder contains source code for the Flask REST API:

  • auth and tasks folders contain models for database and serializers schemas for endpoints.
  • api folder contains versions of API.

flask-todo-list's People

Contributors

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