Git Product home page Git Product logo

task_management's Introduction

task_management

This is the Task Management Backend service.

Tech Stack:

  1. Python (Language)
  2. Flask (Framework)
  3. MySql (Database)
  4. Jwt Token (Authentication)

It performs the following activities

  1. Login using JWT Token
  2. User can Create a new Task
  3. User can Update the Task
  4. User can Delete a Task
  5. User can assign Priority to the task
  6. Order tasks by: Task (Task's title) Task (Task's Id)
  7. Filter Tasks by Task's Priority Task's Status

Prerequisite

  • Pycharm or similar IDE
  • Python (3.8)
  • Flask
  • MySql
  • Jwt Token
  • Virtual Environment

##Getting started

To setup virtual environment

  1. Download repo.

  2. Inside that repo run following

    pip3 install virtualenv

    python3 -m venv venv

  3. To activate this virtualenv hit one of the command.

    source venv/bin/activate

    Now run following to install dependencies

    python -m pip install -U pip pip3 install -r requirements.txt

To stop this virtualenv, just type

deactivate

Create Database

First create task_management database or of your's choice Create Table by below steps - a. Type python3 on terminal b. from app import application c. from extensions import db d. from models import * e. application.app_context().push() f. db.create_all()

Now User and Task Table are created

To run project

./run_api.sh default

Go to '/apidocs' for Swagger Api Signup The User Login the User with the above username and password (It will generate token) -> User is Authenticated Pass The Token to top right corner in (Authorize) Section -> Now the user is authorized

Create Task with passing the data in request body Get Task with get Api (paginated) Get Task by Id Get Filter Taks with Filter Api Get Sorted Tasks with Sort Task Api (paginated) Update the status of Task Delete The Task

Unit-Tests

Sign Up the User if user is not signup Login Through the login api, these will generate a token. Update token in run_test.sh ./run_test.sh

task_management's People

Contributors

vulcan-floyd 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.