This application aims to provide users the ability to plan and keep track of their expenses.
To get started in running this project locally, first clone this repo with the following comman
git clone [email protected]:framgia/sph-flutter.git
Make sure that you have access to this repository and that your machine's SSH is set up and authorized with your account
- Flutter (latest version from stable channel)
- Laravel
- Android Studio
- Android Emulator (From Android Studio)
- Android Device (optional)
- VSCode
- Extensions:
- Dart
- Flutter
- Pubspec Assist
The frontend is currently running the latest build of Flutter in the stable channel.
You will need Flutter to be able to run this application.
If you do not have Flutter installed, you can follow the guide below.
https://docs.flutter.dev/get-started/install
First, make sure you have a working Android emulator set up.
(OPTIONAL) You can connect an Android device with USB Debugging enabled in the developer settings.
Then, at the bottom right of your IDE, click on the device selector.
It is found usually the same place you can see Linux (linux-x64)
After clicking, you can select which device you can run the application in. Select the device most appropriate to you.
Once done selecting, click on the upper right play button to start running the application
Laravel utilizes Composer to manage its dependencies. So, before using Laravel, make sure you have Composer installed on your machine. Here is the link to Composer: https://getcomposer.org/
First, download the Laravel installer using Composer by running the command:
composer global require laravel/installer
*Make sure to place Composer's system-wide vendor bin directory in your $PATH so the laravel executable can be located by your system.
- First, get your computer's ip address
- Run the command: php artisan serve --host <ip> --port 80
- example php artisan serve --host 192.168.1.4 --port 80
- update frontend's .env "BACKEND_URL" to http://<ip>:<port>, example BACKEND_URL=http://192.168.1.4:80
Run the command: php artisan
- Docker and MySQL
- Update.env file
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3308
DB_DATABASE=savings
DB_USERNAME=root
DB_PASSWORD=root
- install docker in your machine, refer to this link: https://docs.docker.com/desktop/install/windows-install/
- make sure PR02 is already included in your latest branch
- run "docker-compose up" in the backend dir
- check if Backend container was successfully created
- then run the migration command "php artisan migrate"
php artisan db:seed --class=UserSeeder
php artisan migrate:fresh --seed
or
php artisan migrate:fresh --seeder=UserSeeder
https://github.com/rangav/thunder-client-support#how-to-use
- update on User Settings
- for JSON,
"thunder-client.saveToWorkspace": true,
- for UI, search "Thunder Client", tick on "Save to Workspace" option
- press
F1
, seach and clickreload window
- for JSON,
- open thunder client on side bar
- goto Collections, click menu ☰
- import, import collections by json
- open thunder client on side bar
- goto Env, click menu ☰
- import, import env by json
- create your own env and mark it as active
- for this project, setup your own "host" since every may have different host in your own environments
- for other environment variables used in the project, set them up in global environment, not local env, not collection env, not custom env