Skip to content

masroorhussainv/rails-jwt-boilerplate

Repository files navigation

Prerequisites

The setups steps expect following tools installed on the system.

  • Github
  • Ruby 3.0.0
  • Rails 6.1.4
  • Postgres
  1. Check out the repository
git clone [email protected]:masroorhussainv/rails-jwt-boilerplate.git
  1. Create and setup the database Run the following commands to create database and run migrations.
bundle exec rake db:create
bundle exec rake db:migrate
  1. Set up environment variables Create .env file in the root of the project and provide the required environment variables in the .env file.
touch .env

Check the .env.example file to see the required environment variables data.

  1. Start the Rails server You can start the rails server using the command given below.
bundle exec rails s

And now you can visit the site with the URL http://localhost:3000

  1. Check routes You can check the application routes using the command given below
bundle exec rails routes

To Do list

  • Add JWT Sign-up
  • Add JWT Sign-in
  • [] Add serializer to return uniform response from API endpoints
  • [] Add Update user, Delete user actions in Registrations controller
  • [] Add Logout user action in Sessions controller
  • [] Add Omniauth support.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages