Lunssi is a website displaying lunch menus near the Helsinki and Tampere centrums. The list of supported restaurants is ever expanding. Visit https://lunssi.fi.
Feel free to propose new restaurants or contact us for anything else at [email protected].
- Install Task
- Initialize project with
task init
. This command installs all necessary dependencies for both the frontend and backend. It also creates a Python virtual environment for the backend to manage its dependencies.
The frontend is built with Next.js.
Start a development server with task dev:frontend
. The server runs on port 3000.
Deploy the frontend with fly deploy
.
When deploying, set BACKEND_API_URL=https://lunssi-backend.fly.dev
in .env
.
Add env variables with fly secrets set SECRET_NAME=secret
The backend of the application is built with Python and FastAPI. The backend runs at https://lunssi-backend.fly.dev/.
Start the backend with task dev:backend
. This command activates the Python
virtual environment and starts the backend with hot-reloading enabled. The
backend will run locally on port 8080 using uvicorn.
Deploy the backend with fly deploy
.