Skip to content

Vignon-Adjanohoun/rails-api-boilerplate

Repository files navigation

Rails API Boilerplate + VueJS Homepage

Rails API Boilerplate is a boilerplate project for a JSON REST API and homepages with VueJs. It can be used for creating an API for a mobile application and simple homepage describing what the mobile app does.

Features

This boilerplate comes with following:

This template comes with:

  • Schema
    • Users table
    • Company table
  • Endpoints
    • CRUD companies
    • CRUD users
    • Sign in with user credentials
    • Get and update user profile
  • Pages
    • home page
  • Rspec tests
  • API documentation
  • VueJS integration with webpacker
  • TailwindCSS integration
  • MongoDB

How to use

  1. Clone this repo
  2. Install MongoDB
  3. Initialize Database rails db:seed create db indexes rake db:mongoid:create_indexes
  4. Initialize Test Database rake db:mongoid:create_indexes RAILS_ENV=test and make sure all tests pass bundle exec rspec 'spec/'
  5. rails s
  6. Swagger api documentation available on http://localhost:3000/documentation

Gems

Node libraries

  • @rails/webpacker Webpacker for Rails
  • tailwindcss A utility-first CSS framework for rapidly building custom user interfaces
  • vue rogressive framework for building user interfaces