The main environment can be found at https://bu-hackathon-api.herokuapp.com/api/v1
The documentation for the API can be found here.
For a little background and some direction for using the API, you can read an introduction here.
This project uses Laravel Sail for local development which uses Docker. You will need to ensure that you have Docker installed and running on your machine.
- Copy the example environment file:
cp .env.example .env- Install Composer dependencies:
docker run --rm \
-u "$(id -u):$(id -g)" \
-v $(pwd):/opt \
-w /opt \
laravelsail/php81-composer:latest \
composer install --ignore-platform-reqs- Run the following commands:
./vendor/bin/sail up -d
./vendor/bin/sail artisan key:generate
./vendor/bin/sail artisan migrate
./vendor/bin/sail artisan db:seed- The API should now be available at http://localhost.
- To stop the project docker containers, simply run the following command:
./vendor/bin/sail down- To start the project docker containers after you've completed the first time use, simply run the following command:
./vendor/bin/sail up -dThe API is deployed using a free Heroku dyno. You can use Heroku or a similar service to deploy your own API at zero cost (well, not Heroku because they're discontinuing free dynos in November although there will be other options - you can even host an API on a Raspberry PI!)