Coder Social home page Coder Social logo

backend-assign's Introduction

User Management System

This is a simple User Task Management System REST API built using Python and Flask. It provides endpoints to create, update, list, and paginate tasks.

Prerequisites

  • Python 3.7 or higher
  • Flask
  • Flask SQLAlchemy

Getting Started

  1. Clone the repository:

    git clone https://github.com/AkhilJ321/backend-assign.git
  2. Navigate to the project directory:

    cd backend-assign
  3. Create and activate a virtual environment (optional):

    python -m venv venv
    source venv/bin/activate
  4. Install the required dependencies:

    pip install -r requirements.txt
  5. Start the Flask development server:

    flask run
  6. Open your web browser and access the following URL:

    http://localhost:5000
    
  7. Use an API testing tool like Postman to interact with the API endpoints:

    • Create a task: Send a POST request to /tasks with the task details in the request body.

    • Receive a single task: Send a POSTS request to /tasks{task_id}.

    • Update a task: Send a PUT request to /tasks/{task_id} with the updated task details in the request body.

    • List all tasks: Send a GET request to /tasks.

      • Optional query parameters:
        • page (default: 1): The page number for pagination.
        • per_page (default: 10): The number of tasks to display per page.
  8. Explore the API endpoints and test different requests based on your requirements.

Project Structure

  • app.py: The main Flask application file containing the API endpoints and configurations.
  • requirements.txt: Lists the required Python packages and their versions.
  • README.md: Project documentation file.

backend-assign's People

Contributors

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