Skip to content

Latest commit

 

History

74 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sixteen Bars API

The back contains our controller, roots, and API. We have a db directory with our connection and seed files. The front-end communications with our back-end to manipulate functionality on our API. We also used Postman to make our Post method.

Instructions:

You can make request to any of the routes below and get back either specific or multiple JSON objects.

The root url is sixteen-bars.herokuapp.com.

For Example Example API call

a GET request to sixteen-bars.herokuapp.com/api/poems would return all JSON objects for poems.


Routes:

PATH METHOD USE
/api/poems/ POST Posting a new Poem
/api/poems/ GET Get all Poems
/api/poems/:id GET Shows individual Poem
/api/poems/:id DELETE Deletes individual Poem
/api/poems/:id PUT Edits individual Poem

WIP Routes:

These routes are implented in the "addingPassportToBackend" branch but not yet implented into master

PATH METHOD USE
/auth/facebook GET Passport-Facebook auth
/auth/facebook/callback GET callback after auth

Middleware/Technologies:

  1. Passport-facebook - For authentication via Facebook.
  2. Method-override - To give us access to restful methods(more than just GET AND POST).
  3. BodyParser - To allow the api to recieve form data.
  4. Cors - Resolved issue with the angualr front-end pulling data, Not comepletey sure of the extent of what it's doing.

Known Issues:

  1. Authentication with facebook via Passport is not functional.

#Front-end repository Project 3 FrontEnd

About

Back End for Project 3

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages