By the end of this, students should be able to:
- Create a new user through ajax post requests
- Create a new post through ajax post requests
- Create a new category through ajax post requests
- Get all the posts in the API
- Get all the categories in the API
- Get all the users in the API
- Fork and clone
- Run
npm install
- Run
bower install
- Run
grunt serve
- Clone/update this repo: JWApi
cd
into theJWApi
- Run
bundle install
- Run
rake db:setup
- Run
rails s
to run theJWApi
in a localhost - Use this
curl
request to make sure the api is working properly:curl -I http://localhost:3000/users
This API has an endpoint for an amazon signkey that you can use to post files/images/data to an S3 bucket. No gems, no paperclip!! Posts have images, one featured image, and one thumbnail image. Make this functionaility in the front end. You will need to setup your AWS account, apply for S3 service, configure your S3 service, and create an IAM account with the appropriate credentials.
Some resources for this: