Coder Social home page Coder Social logo

neosergio / fastapi-clean Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 8 KB

A scalable To Do List application built with FastAPI, DynamoDB, and AWS CDK. Demonstrates a clean architecture approach, integration with AWS services, and unit testing with moto.

License: MIT License

Python 100.00%

fastapi-clean's Introduction

To Do List Application

Description

This project is a To Do List application developed with FastAPI, using DynamoDB as the non-relational database. The database infrastructure is managed using AWS CDK, and unit tests are performed using moto to simulate DynamoDB.

Purpose

The purpose of this project is to demonstrate how to build a scalable web application using a clean architecture, integrating FastAPI for the backend, DynamoDB for data storage, and AWS CDK for infrastructure as code. Additionally, it shows how to effectively perform unit tests using moto to simulate AWS services.

Project Structure

.
├── app/
│   ├── __init__.py
│   ├── main.py
│   ├── core/
│   │   ├── __init__.py
│   │   ├── config.py
│   ├── models/
│   │   ├── __init__.py
│   │   ├── todo.py
│   ├── repositories/
│   │   ├── __init__.py
│   │   ├── todo_repository.py
│   ├── schemas/
│   │   ├── __init__.py
│   │   ├── todo.py
│   ├── services/
│   │   ├── __init__.py
│   │   ├── todo_service.py
│   ├── api/
│   │   ├── __init__.py
│   │   ├── deps.py
│   │   ├── v1/
│   │   │   ├── __init__.py
│   │   │   ├── todo.py
│   ├── tests/
│   │   ├── __init__.py
│   │   ├── test_todo.py
├── infrastructure/
│   ├── __init__.py
│   ├── localdynamodb.yml
├── .env
├── requirements.txt

Installation

Prerequisites

  • Python 3.8+

Step-by-Step

  1. Clone the repo
  2. Set up a virtual environment
  3. Install dependencies
  4. Configure environment variables
  5. Run the app
  6. Run the tests

Usage

You can access the automatic API documentation once the application is running by navigating to http://localhost:8000/docs.

Contributions

Contributions are welcome. Please open an issue or pull request to discuss any changes you would like to make.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

fastapi-clean's People

Contributors

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