This application is a challenge inspired by the classic build a book API.
The basic and classic books API with some extras, this is API includes authentication and versioning.
- Be based on TDD.
- Authenticate user for all endpoints.
- Include versioning.
- Use this modeling data.
- Endpoints:
- Create user.
- V1:
- Book index
- Book create (They should always have their writers and genres)
- Book show
- Book update
- Writer index
- Writer create
- Writer show
- Writer update
To clone and run this application, you'll need Git, Ruby, ruby on rails and Postgresql installed on your computer. From your command line:
# Clone this repository
$ git clone https://github.com/r10rivas/api-book-world.git
# Install dependencies
$ bundle install
# Create database
$ rails db:create
# Run migrations
$ rails db:migrate
# Run seed
$ rails db:seed
# Run the app
$ rails server