Skip to content

Repo for the back end of our final project from the DevelopMe bootcamp

Notifications You must be signed in to change notification settings

LaikaTheSpaceDog/final-project-back-end

Repository files navigation

Nerd Words Back End

Screen shot of Nerd Words homepage

This is the back end for a group project built that was built in 5 days during week 12 of the Develop Me Coding Fellowship. Nerd Words is a dictionary app aimed at beginners to coding, which included the ability for users to create a list of 'liked' words. I was responsible for setting up the database and API using Laravel whilst my two coursemates were responsible for building the front end using React and Redux (repo for their work available here and live site available here). I set the API up on a server using AWS, which is available at the following URL: https://nerdwords.developme.space/api/

Installation

To get set up with the project on your local machine you will need Vagrant downloaded on your machine. Once you've done this, follow these instructions:

  1. Run git clone [email protected]:LaikaTheSpaceDog/final-project-back-end.git <desired sub-directory>. The project files will be cloned to your local repo.
  2. Go to your project directory and run npm install. This will install the dependencies in the local node_modules folder.
  3. Go to the project folder: cd final-project-back-end.
  4. Run composer install to download the required dependencies locally.
  5. Run vendor/bin/homestead make to copy relevant Homestead files into project directory.
  6. Change the second line of Homestead.yaml so it just uses 512mb: memory: 512
  7. Run cp .env.example .env to create a .env file
  8. In your newly created .env file, make the following changes:
DB_DATABASE=homestead
DB_USERNAME=root
DB_PASSWORD=secret
  1. Run vagrant up to get Vagrant up and running.
  2. Once Vagrant has finished loading, in your browser go to the below to view the UI:
    1. On Mac: http:https://homestead.test
    2. On Windows: http:https://localhost:8000
  3. Run vagrant ssh to SSH into the running Vagrant machine.
  4. Run cd code to enter the code directory.
  5. Run artisan migrate to run all migrations.
  6. optional: Run artisan db:seed to run the Owners seeder - this will populate the Words table with the words we used in our live site.

API Routes

Please see below for a list of the API routes that you can use once you have the project set up in your local environment.

  1. GET: http:https://homestead.test/api/words
  2. GET: http:https://homestead.test/api/words/{id}
  3. GET: http:https://homestead.test/api/words/{id}/links
  4. GET: http:https://homestead.test/api/words/liked
  5. POST: http:https://homestead.test/api/words
  6. POST: http:https://homestead.test/api/words/{id}/links
  7. PUT: http:https://homestead.test/api/words/{id}
  8. PATCH: http:https://homestead.test/api/words/{id}

About

Repo for the back end of our final project from the DevelopMe bootcamp

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published