Hyperforms' Rails backend API.
264
This project is a basic Rails api, using Ruby 2.4.3 and Rails 5.2.0. It requires Redis to be installed.
My intention with it is to use it for my next projects, but feel free to clone / fork it for your own purpose, I don't care.
To make everything work, please do the following:
git clone https://github.com/Drillan767/base-rails-api.gitcd base-rails-apiconfig/application.yml.JWT_SESSION_SECRET.rake secret command output.rails s.The config/application.yml file should look like so:
JWT_SESSION_SECRET: 'f70e76cbc96d56341c168bb945a1626...'
CORS_ORIGIN: 'http://localhost:8080'
These keys correspond to 2 values contained in respectively config/initializers/jwt_sessions.rb and config/initializers/cors.rb.
For more info, please read Figaro's documentation.
A bash file doing all this should come quickly...
For more informations, please check the project's Gemfile.
User. Basically, you can clone this project then create a new "front-end" project with react-create-app or vue-cli or ng, then link your front-end this API, and prepare views for a signup/login form -- it will work.
For any other model, you're free to create whatever you want.
This post made by Yulia Oletskaya, from which I got my source code.
Content type
Image
Digest
Size
419.3 MB
Last updated
about 8 years ago
docker pull jaeger767/hyperforms-api