fastapi-hoster

FastAPI Hoster

FastAPI Hoster is a straightforward, Go-based tool for those who’d rather spend time creating than worrying about deployment. It covers the essentials—Nginx, SSL, firewall rules—so you don’t have to. It’s simple and does what it needs to, making it easy to host and manage your FastAPI applications. Let FastAPI Hoster take care of the setup while you focus on what you do best.

P.S.: This is just the initial version—more updates are on the way!

Features

Installation

To use FastAPI Hoster, you need to have Go installed on your system. If you haven’t installed Go, you can download it from the official Go website.

Clone the repository:

git clone https://github.com/AkhileshThykkat/fastapi-hoster.git
cd fastapi-hoster

Build the project:

go build -o fastapi-hoster ./cmd/fastapi-hoster

Usage

Run the FastAPI Hoster:

sudo ./fastapi-hoster

Add package to bin for easy access

sudo cp your_path/fastapi-hoster/fastapi-hoster /usr/local/bin/

Then access anywhere in the system

sudo fastapi-hoster

Follow the interactive prompts to:

  1. Launch your FastAPI application
  2. Host your application with Nginx
  3. Configure SSL certificates
  4. Set up UFW rules

Contributing

Contributions are welcome to the FastAPI Hoster project! Here’s how you can contribute:

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Contact

Akhilesh M T - @AkhileshThykkat Akhilesh M T- akhileshthykkat843@gmail.com

Project Link: https://github.com/AkhileshThykkat/fastapi-hoster

Acknowledgements