fus-marcom / bulletin-react

React/Redux version of the University Bulletin
MIT License
42 stars 18 forks source link

Added Server for API and authentication 🔥 #13

Closed pantharshit00 closed 7 years ago

pantharshit00 commented 7 years ago

@JesseRWeigel I am super excited to show you that I have found and implemented a way to solve our authentication problems. I have found a way to route remote graphql api through our server. We are utilising the remote endpoint apollo server strategy which basically provided schema from a remote gql server.

ROUTES

GraphQL API
/graphql 

GraphIql GUI
/graphiql 

I recommend you to use GraphiQL from the server now instead of chrome extension

The server runs on PORT 8080 by default. MAKE SURE TO RUN YARN. ITS MANDATORY.

I have implemented concurrently package that starts our server and front end development server by using only one command yarn start. Sever is also hot reloading as I used nodemon. Now its your time to implement SSO authentication to this server

THIS SERVER ALSO DONT THROW 403 even without wp authentication

PULL REQUEST MERGE ORDER

As I made 3 PRs this weekend. You should merge #11 first then #12 then this. I have made three so that I may not break stuff and developed separate feature on separate branch which is the standard. Merging in this order will give you better commit history.

HOPE THIS HELPS YOU

      HARSHIT
JesseRWeigel commented 7 years ago

This is awesome! I have been thinking that something like this would help with the authentication issue. Great job!