This repository is a part of a group project "Direct Farmers to Consumers Market" of the 2024-25-1 Advanced Software Technology course of ELTE Faculty of informatics.
In this section, we will discuss how to run the application in debug mode on Android emulator on a Windows machine.
The following commands should be run from the ./backend folder.
- Run
npm ito install required dependencies. - Copy the .env.example file, rename it to .env, and modify the environment variables if needed.
- Run
npm db-seedto create and seed the .sqlite database file with some test data. - Run
node index.jsto start the server.
After starting the server, you should see the following message in your terminal:
🚀 Server is listening on http://[::1]:3000
- Open Android Studio, and open Virtual Device Manager.
- Add a Pixel 3 device with API 35, and cold boot the emulator.
- Run
flutter devicesto list available devices. You should see the emulator listed with an ID similar toemulator-XYZW. - From the
./frontendfolder, runflutter run -d [emulator id].
After running the command, you should see the application on the emulator.
