This project uses docker to run.
If running the project for the first time you will need to modify your /etc/hosts
file to include the following line :
127.0.0.1 api.barrels.test
You can now install python requirements: pip install -r --upgraded requirements.txt
.
Then just run fab start
.
The project is available at http://api.barrels.test
. You can use an api client (eg. Postman) to play with it.
Several fabric commands are available :
fab cache_clear
: Clear cache of the applicationfab clean
: Clean the infrastructure, remove all datafab clean_start
: Start everything from freshfab create_db
: (Re)Create an empty databasefab cs_fix
: Fix coding standards in codefab diff_migration
: Generate a migration by comparing the current database to the mapping informationfab import_csv
: Import data from csv file, use option purge to truncate the wine and bottle tables before. You can specify the csv file path (in csv format) and the mapping file path (in yaml format)fab init_db
: Drop and recreate database with updated schema then load fixtures if specified sofab install
: Install application (composer, assets)fab logs
: Show logs for all containerfab migrate
: Apply available database migrationsfab populate_db
: Import fixtures into databasefab reboot
: Reboot the infrastructurefab restart_service
: Restart a single servicefab ssh
: Ssh into the application containerfab start
: Ensure everything is started and installedfab stop
: Stop the infrastructurefab up
: Ensure infrastructure is synced and runningfab update_db
: Update database to match schema