My Piggy Bank has been created for those who are struggling saving up and those who are willing to save up for some reason. It's been built by 5 friends and still improving.
💡 Clone the repository & run
composer install
🖋️ Create and set your own .env.local
-
The DATABASE_URL allows doctrine to reach your database
- "user_name", "password" & "database_name" have to be replaced by your values
- If you are not using mysql, you must get the right DATABASE_URL on Symfony's website.
-
The JWT_PASSPHRASE is mandatory for lexik-bundle to be working and its value is up to you
-
Specify your work environment
DATABASE_URL="mysql://user_name:[email protected]:3306/database_name?serverVersion=mariadb-10.3.25"
JWT_PASSPHRASE=e65cbbbe71ea5677b6199c1821c26d0b
APP_ENV=dev
🧞♂️ Create your database
php bin/console doctrine:database:create
🕊️ Migrate your database
php bin/console doctrine:migrations:migrate
💥 Load fixtures in order to fill your database
php bin/console doctrine:fixtures:load
🔑 Generate a keypair for lexik (JWT authentication)
php bin/console lexik:jwt:generate-keypair
📋 You need to clear the cache
php bin/console cache:clear
🧰 PHP configuration
In order to run your application, you need to make sure that you have the following modules installed :
- intl
- openssl