This is repo for the back end of Food Atlas, a mini web app built with React that combines three of my greatest loves: travel, geography and food!
This API was built using Laravel 8 and is hosted using AWS EC2. The API can be accessed at https://food-atlas.laikathespacedog.co.uk.
To get set up with the project on your local machine I would recommend using using Vagrant. Once you've downloaded Vagrant, you can follow these instructions:
- Run
git clone git@github.com:LaikaTheSpaceDog/food-atlas-back-end.git <desired sub-directory>
. The project files will be cloned to your local repo. CD
into the newly created project folder.- Run
composer install
to download the required dependencies locally. - Run
vendor/bin/homestead make
to copy relevant Homestead files into project directory. - Change the second line of Homestead.yaml so it just uses 512mb:
memory: 512
- Run
cp .env.example .env
to create a .env file - In your newly created .env file, make the following changes:
DB_DATABASE=homestead
DB_USERNAME=root
DB_PASSWORD=secret
- Run
vagrant up
to get Vagrant up and running. - Once Vagrant has finished loading, in your browser go to the below to view the UI:
- On Mac: http://homestead.test
- On Windows: http://localhost:8000
- Run
vagrant ssh
to SSH into the running Vagrant machine. - Run
cd code
to enter the code directory. - Run
artisan migrate
to run all migrations.
The repo for the front-end of this project can be found here.