This is an example of a todo application that uses Flutter for the frontend, NodeJs for the backend and genezio deployment.
If you want to deploy your application step-by-step, follow the guidelines below.
- Host a Mongo Database. Follow this tutorial to get a free tier database.
- Create a
server/.env
file and add the following environment variables:
MONGO_DB_URI=<your-mongo-uri>
- Run
git clone https://github.com/Genez-io/genezio-examples
- Navigate to the folder
cd ./genezio-examples/typescript/todo-list-flutter
- From a first terminal, run
genezio local
in theserver/
folder to start the local server. - From a second terminal, start the Flutter app by going to the
client/
folder and runflutter pub get
andflutter run -d chrome
.
Note: You must have MONGO_DB_URI
exported as an environment variable or set in the .env
file in the server/
folder.
Flutter will start a new tab in your default browser with the todo list app that you can test locally.
- Run
genezio deploy
in the root directory to deploy the project to the cloud.
genezio
will provide in the terminal a publicly available URL where you can access your application.
Note: To remotely set the environment variables, you can deploy using genezio deploy --env server/.env
command.
All commands are run from the root of the project, from a terminal:
Command | Action |
---|---|
npm install -g genezio |
Installs genezio globally |
genezio login |
Logs in to genezio |
genezio local |
Starts a local server |
genezio deploy |
Deploys a production project |
genezio --help |
Get help using genezio |
Check out:
If you need support or you have any questions, please join us in our Discord channel. We'd love to chat!