Skip to content

lilchiken/dto-with-interface-fastapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Data Transfer Object (DTO) with interface

Simple FastAPI project. Use API of site "api.m3o.com".


Table of Contents


📖 Installation

$ git clone https://github.com/lilchiken/dto-with-interface-fastapi.git
$ cd dto-with-interface-fastapi

Pip

# Windows
$ python -m venv .venv

# macOS
$ python3 -m venv venv

# Windows
$ Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
$ .venv\Scripts\Activate.ps1

# macOS
$ source venv/bin/activate

(.venv) $ pip install -r requirements.txt
(.venv) $ cd src
(.venv) $ uvicorn main:app
# Load the site at http://127.0.0.1:8000

Docker

$ docker pull lilchiken/dto-with-interface
$ docker run -d --name dto-with-interface-container -p 80:80 lilchiken/dto-with-interface
# Load the site at http://localhost:80

Next Steps

  • Connect another API, try changing the JSON objects for your needs.
  • Add gunicorn or other web server for improve your skills.
  • Configure permissions in API viewset.

🤝 Contributing

Contributions, issues and feature requests are welcome! ;)

⭐️ Support

Give a ⭐️ if this project helped you!

License

The MIT License