App for creating, modifying, and deleting users. Returns formatted responses in both HTML and JSON.
To test drive the application:
-
Git clone the repository
-
Run
$ bundle
-
Migrate and seed the SQLite3 databases (
rake db:migrate
andrake db:seed
) -
Start the server,
$ rails s
, and browse tolocalhost:3000
-
Create, edit and delete a user
-
To visualize the JSON data, add
.json
to the end of the URL. For example: -
Or use a tool like the Postman - REST Client Chrome extension to visualize the JSON data
- Create a custom accept header preset
- Click Manage Presets and create a header preset called
JSON Accept
- Set the
key
toAccept
- Set its
value to
application/json`
- Click Manage Presets and create a header preset called
- Run tests with the following URL / HTTP verb combinations
- http://localhost:3000/users/ with GET
- http://localhost:3000/users/17 with GET
- http://localhost:3000/users/ with POST, along with form-data
- Create a custom accept header preset
-
To run the feature specs, call
$ rspec
from the command line