These are instructions for setting up a development environment only. See DEPLOY.md for deployment instructions.
- Clone this repository
- Copy the fixometer config in
fixometer/config/config.dist.php
tofixometer/config/config.php
- Run
composer install
- Create a MySQL database (and, optionally, a user for that database)
- Copy .env.example to .env, and replace the values that are incorrect
- Run
php artisan key:generate
to generate anAPP_KEY
env var (required for SSL) - Run
php artisan config:clear
to reload the config cache - Ensure that the fixometer database connections in the
.env
file are set- FIXOMETER_DB_* can be set to the same database as your normal one, or a new database can be created for fixometer users and sessions.
- Run
php artisan doctrine:migrations:migrate
- Seed the database with
php artisan restart:import:businesses data/test.csv
- Update the fixometer config in
fixometer/config/config.dist.php
tofixometer/config/config.php
, OR change the path to the fixometer config to somewhere else by setting in your.env
asFIXOMETER_CONFIG_PATH
. - If necessary, run migrations for the fixometer database
php artisan doctrine:migrations:migrate --connection=fixometer
- You may already have a Fixometer DB locally, in which case you don't need to run these migrations.
- Add the users to log in with to visit the admin section
php artisan db:seed --class=UserSeeder
. - Run
npm install
- This install front-end dependencies.
- Run
npm run dev
- This builds front-end files.
- Run the app locally with
php artisan serve
The following users are created:
password | role | |
---|---|---|
[email protected] | secret | Root |
[email protected] | secret | Administrator |
[email protected] | secret | Host |
[email protected] | secret | Restarter |
[email protected] | secret | Guest |