- Clone this repository.
- Run
npm install. - Run
composer install - Run
make bundle. - Run
make serve. - Browse to http://localhost:8000/yap (not 127.0.0.1) in your web browser.
- Browse to http://localhost:8000/yap/admin (not 127.0.0.1)
- Create an admin user in the database
INSERT INTO users (id, name, username, password, permissions, is_admin) VALUES (UUID(), 'admin', 'admin', SHA2('admin', 256), 0, 1);- Log with username:
admin, password:admin.
After cloning, add a file called .env.testing with the value GOOGLE_MAPS_API_KEY=<value>. Then run make test.
To run code coverage, you can run make coverage.
Use $this->withoutExceptionHandling() in your test classes to see the underlying 500 error during your tests.
- Go to
cd src/docs - Run
npm run start
You should be able to see the documents update as you edit files at http://localhost:3000.
To test building the docs run:
npm run docusaurus buildThis only works locally right now.
- Run
make swagger. - Browse to
/api/documentation