Todo List with Flutter
The source code for this example is public on the following GitHub repository.
If you want to deploy your application step-by-step, follow the guidelines below.
Prerequisites
- 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>
Clone the example
- Run
git clone https://github.com/Genez-io/genezio-examples
- Navigate to the folder
cd ./genezio-examples/typescript/todo-list-flutter
Run the example locally
- 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 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.
Deploy the project
- Run
genezio deploy
in theserver
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 .env
command.
Genezio Commands
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 |
Want to learn more?
Check out:
Contact
If you need support or you have any questions, please join us in our Discord channel. We'd love to chat!