jameschambers / boring-bits-rails-api Goto Github PK
View Code? Open in Web Editor NEWBare-bones template for Devise JWT-auth API-only Rails applications.
Bare-bones template for Devise JWT-auth API-only Rails applications.
Is possible to use SQLITE by default? I tested in my local PC and I don't have PGSQL and the template shows me an error:
could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Couldn't create 'PetAppApi_development' database. Please check your configuration.
rails aborted!
PG::ConnectionBad: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
bin/rails:4:in `<main>'
Tasks: TOP => db:create
(See full trace by running task with --trace)
I've tried boring-bits-rails-api template, tests were passed. When I registered a user through postman, I got response as follow:
{
"data": {
"id": "8",
"type": "users",
"attributes": {
"email": "[email protected]"
},
"links": {
"self": "http://localhost:3001/api/users/8"
}
},
"jsonapi": {
"version": "1.0"
}
}
It doesn't return an authorization token
Version of ruby ruby-2.6.2
Version of devise-jwt in use 0.7.0
Version of rails in use 6.0.3
When I run rails new app_name -m path/to/template.rb
I get this error when trying to run rails generate devise:install
<module:Devise>' [dry-configurable] passing a constructor as a block is deprecated and will be removed in the next major version
Provide a constructor: keyword argument instead
I think it is coming from your version of devise-jwt 0.7.0 which had a major change after it.
Rails: 6.0
Ruby: 2.6.3
I guess you need run 'bundle install'
before generate('devise:install')
? :)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.