Zup App repository is the repository containing the Zup Protocol Web Application.
-
Flutter/FVM
- To run the app, you will need to have Flutter installed on your computer. The current version of Flutter used by Zup App is
3.29.2
. - You can check if Flutter is installed, or the Flutter version by running
flutter --version
on your terminal, you should see a response likeFlutter X.XX.X
. - If the Flutter is not installed, or the version differs from the version used by Zup App, you can install Flutter from FVM (To allow you have multiple Flutter versions in your computer)
- How to install FVM
- To install Flutter from FVM, run
fvm install [FLUTTER_VERSION]
- To run the app, you will need to have Flutter installed on your computer. The current version of Flutter used by Zup App is
-
Dart
- You will need to have Dart installed on your computer. Currently, Dart comes with Flutter. So no additional installation is required if you have Flutter installed.
- The current version of Dart used by Zup App is
3.5.2
or higher. You can check your Dart version by runningdart --version
on your terminal, you should see a response likeDart SDK version: X.X.X
.
-
GNU Make
- To check if Make is installed, run
make --version
. You should see a response likeGNU Make x.xx
. - If Make is not installed, visit the GNU Make website for installation instructions.
- Make will be used to run pre-defined commands in a Makefile. is not mandatory to run the App, but it will make the development process easier.
- To check if Make is installed, run
- Clone the repository:
git clone https://github.com/Zup-Protocol/zup-app.git
- Set a
.env
file in the root of the repository, following the example from .env.example. - Run
make install
- Nothing else to do! You are ready to go!
Running tests is as simple as running make test
in your terminal, at the root of the repository.
This app is hosted on Vercel. To trigger a deployment, just push changes to the branch that you want to deploy. Pushing changes to the main branch, will cause a production deployment.
Before making a deployment to production, that are a few steps that you need to do to make the deployment more smooth to the user.
- Update the Flutter bootstrap build version in the index.html file to the next version. This prevents users from seeing a cached version of the app (old version), as Flutter Web does not currently handle caching automatically. This manual update serves as a workaround.
-flutter_bootstrap.js?v=1 +flutter_bootstrap.js?v=2
- That's it! You're ready to deploy to production!
You can add any new network that is EVM by simply adding it to the networks enum in networks.dart. After doing it and populating all the necessary fields, simply run make gen
in your terminal at the root of the repository.
Now everything is ready to go! the new network will be available in the app, and should be 100% functional.