Animal shelter presentation and management site.
- PHP >= 8.1
- Check Symfony CLI is installed
- Check composer is installed
- Check yarn & node are installed
- Clone this project
git clone [email protected]:Anthony-AGTN/le-refuge.git
- Install dependencies with
composer
composer install
- Install dependencies with
yarn
yarn install
- Duplicate
photos.fixtures
folder intophotos
cp -r ./public/images/photos.fixtures ./public/images/photos
- Build assets
yarn encore dev
- Duplicate file
.env
in.env.local
cp ./.env ./.env.local
- In
.env.local
, fill in the information for the database
# DATABASE_URL="mysql://db_user:[email protected]:3306/db_name?serverVersion=5.7&charset=utf8mb4"
- Run commands to generate the database
symfony console doctrine:database:create
symfony console doctrine:migrations:migrate
symfony console doctrine:fixtures:load
- Launch your local php web server
symfony server:start
- Launch your local server for assets
yarn run dev --watch
yarn dev-server # With Hot Module Reload activated
- In
.env.local
, Uncomment BASE_FEED_URL / API_TOKEN_INSTAGRAM / LIMIT_DISPLAY_FEED_INSTAGRAM and fill in the token for API_TOKEN_INSTAGRAM
###> Instagram/API_BASIC_DISPLAY ###
# BASE_FEED_URL="https://graph.instagram.com/me/media?fields=id,caption,media_type,media_url,permalink,thumbnail_url,timestamp,username"
# API_TOKEN_INSTAGRAM="Here_your_api_key_for_basic_display"
# LIMIT_DISPLAY_FEED_INSTAGRAM=6
###< Instagram/API_BASIC_DISPLAY ###
test test2