This is a straightforward boilerplate for building REST APIs with ES6 and Express.
- ES6 support via babel
- CORS support via cors
- Body Parsing via body-parser
clone the repo
cd server
# Install dependencies
npm install
# Start development live-reload server
npm run dev
# Start production server:
npm start
Go to localhost:3000/graphiql to access the graphql playground
The only query working now is getRating. To try it out, copy paste this :-
{
getRating{
id
provider
score
}
}