Hudi Backend
This backend is written in Dart using the Shelf package. It provides a REST API with Firebase Authentication and MongoDB integration.
Technologies
- Dart
- Shelf (HTTP server)
- Firebase Authentication
- MongoDB
- Docker
- Google Cloud Run
How to run locally
-
Clone the repository:
git clone https://github.com/hudione/backend.gitcd backend -
Create your
.envand.env.localfiles in the root (see below). -
Run the server:
dart run lib/server.dart
Environment variables
Your .env and .env.local files should contain:
API_TOKEN=your_api_token_here
FIREBASE_PROJECT_ID=your_project_id
MONGO_DB_URI=your_mongodb_uri
Documentation
More details available in the documentation folder:
Testing
Run:
dart test
Deployment
This backend can be deployed to Google Cloud Run using Docker.
Make sure the Dockerfile is correctly configured and the environment variables are set in the Cloud Run console or via secrets.