Challenge Overview
I was so pleased with the Contentful.com NodeJS microservice F2F challenge from yesterday I thought I would push my luck and try it again. For this challenge I would like you to create a POST to the post object in contentful. You may use the provided index.html to create a simple text form to POST. Look at the “gets” in app js and create a meaningful route. This should be pretty easy compared to yesterday since most things are already set up. And for you coding enjoyment I have Heroku Review Apps set up in my Pipeline so you should be able do a pull request (optional) and see your app in a few minutes already running but this is optional since it will expose your code to others.
Requirements:
1. Create a POST service in app.js that will create a new post(blog entry, bad naming choice I know)
2. Create a form in index.html to generate a post. Don’t worry if you can’t see it with the /api/post since it needs to be published first.
Setup:
1. clone: git@github.com:kbowerma/contentful-request.git and switch to the dev branch. MAKE SURE YOU ARE ON THE DEV BRANCH
2. make your own branch using the following format members/handle for example the syntax would be ‘ git checkout -b members/kbowerma ‘
3. Next you need the .env file which I will put in the form. If you use foreman you can just drop it in and it will be read.
4. Code your changes.
Optional:
If you would like to push the branch and do a pull request you are welcome but please keep in mind that you are exposing you solution and anyone can go into the branches and copy them. So only do this if you are sure you got it right. From github you can do a pull request (against dev) and wait a few minutes and you will see your app running on https://contentful-request-dev-pr-##.herokuapp.com/ just replace with your pull request number.
Final Submission Guidelines
1. Zip it