Code Monkey home page Code Monkey logo

homie's Introduction

About Project

This is a little project to show some skills.

Getting Started

Requirements

  • Rails 6.1.1
  • Ruby 3.0
  • PostgreSQL 13.1

Installing

Generate a secret key running the next command and then copy and paste the secret key into the .env file.

rails secret

It will easy just need to run the next commands after downloaded the project.

rails db:create db:migrate db:seed

after run migrations run the next command

bundle install

Now start the server

rails s

Now after run the server we'll use Postman to retrieve data and you can download the postman collection here.

Authentication

If you run correctly the seed command you can use whatever of this users to login.

  • Admin: Manage all
email: [email protected],
password: valid_password
  • Partner: Read and Write just for a specific method to retrieve data.
email: [email protected],
password: valid_password
  • Visitor: Read
email: [email protected],
password: valid_password

In the previous request (login) we expect to receive a Status: 200, and all the information from the database for that particular users.

Now you need to copy the authorization token that you can find it in the headers section or you could create a global variable too.

After set up the previous token you can retrieve the correct data from any endpoint.

Authors

homie's People

Contributors

luisosnet avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.