Skip to content
Matthew Sullivan edited this page Nov 27, 2020 · 6 revisions
Stack Logos

Ruby, JWT, and Postgres Authentication

Lightweight Ruby on Rails user registration/login GraphQL API that returns stateless json web tokens to access secured mutations and queries.

Database

Install Postgres

https://postgresapp.com/

Create database

$ createdb rjpa_test

Setup

Install dependencies and build database

$ bundle install && rails db:migrate

Serve

$ rails s

Setup

Install dependencies and build database

$ bundle install && rails db:migrate

Test

$ rails test

Contributing

Pull requests are welcome. For major changes, open an issue first to discuss what you would like to change.

Please make sure to update and or write tests as appropriate.

License

MIT

Clone this wiki locally