Skip to content

Authentication API for users of a separate React app

Notifications You must be signed in to change notification settings

gutoarraes/rails-api

Repository files navigation

Rails-API

This project was not concluded and discontinued.

This is an API that validates users so they are able to login to a front end in another codebase made with a React.

Getting started

Required:

  • Ruby "3.2.1"
  • Ruby on Rails "7.0.6"
  • Postgresql "1.1"

To get the repository locally, execute the following command in the terminal.

git clone https://github.com/gutoarraes/rails-api

Install all gems:

gem install

Start the API server by running rails s

Debug with adding byebug in a particular part of the code as a break point to be displayed in the terminal

Greatest challenge

The biggest challenge was editing the secrets.enc.yml file. I wasn't able to find a work around in my Windows OS, so I eventually used a VM, installed MacOS and managed to edit the file.

This gave me the opportunity to manage rails versions, configuraing environment variables, and following through on error messages, all on an operating system (OS) that I had very limited experience on.

Technologies

  • Database: PostgreSQL
  • Hosting: Fly.io
  • Backend: Ruby on Rails

Acknowledgements

Huge shoutout to my friend Franco Moraes who gave me the idea and the opportunity to start this project and piggyback off of his React application.

About

Authentication API for users of a separate React app

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published