Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Light Cloud

Flask API Boilerplate

A Flask service served by Waitress, ready to deploy on Light Cloud.


Features

  • Flask 3
  • Served by Waitress rather than app.run() — the development server prints a warning and is single-threaded, and this image is the one that goes live
  • Binds 0.0.0.0 so the container is reachable
  • Binds $PORT, defaulting to 8000

API Endpoints

Method Endpoint Description
GET / Welcome message

Local Development

# Install dependencies
pip install -r requirements.txt

# Run the server
python main.py

The API will be available at http://localhost:8000

Deploy to Light Cloud

1. Create an Account

Visit console.light-cloud.com and sign up with GitHub or Google.

2. Create New Application

  1. Click "New Application" in the dashboard
  2. Select "Container" as the deployment type
  3. Choose "Flask" as the framework

3. Connect Repository

  • Option A: Fork this repository and connect it via GitHub
  • Option B: Push this code to your own GitHub repository and connect it

4. Configure Settings

Light Cloud will auto-detect your settings, but you can verify:

Setting Value
Port 8000
Start Command python main.py

5. Deploy

Click "Deploy" and your API will be live in minutes!

Your API will be available at https://your-app.light-cloud.io

Learn More


WebsiteDocumentationConsole

Made with ☁️ by Light Cloud

About

Flask starter boilerplate for Light Cloud

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages