Giter VIP home page Giter VIP logo

my-first-rails-full-stack-app's Introduction

README

  • How the app works:

    • At the home page, you click 'Users' or 'UsersJSON' to be directed to their respective pages. On the 'Users' page, you can view all existing users in individuals cards/tiles. You can also add a new user, edit an existing user's first name, last name, and title, and delete a user. With the edit and delete functions, you have to refresh the page afterwards in order to see the changes rendered on the page.
    • On the 'UsersJSON' page, you can view the JSON representation of all the users and their data. I used an npm package called react-json-pretty to make it more readable.
    • With what I have so far, I was unable to show a nested organizational structure. I think I would have to run a new migration to add a direct_reports column to the database, and then see if I could somehow add users to that array using their manager_id key property.
  • **Note: I did have to create a super user role and a password during my installation of postgreSQL and setting up the database, so I'm not sure how that will impact someone else trying to clone the repository and run the server on their local computer.

  • Ruby version '2.6.3'

  • Rails version '6.0.2.1'

  • System dependencies:

    • axios '0.19.2'
    • react '16.13.0'
    • react-dom '16.13.0'
    • react-router-dom '5.1.2'
    • react-json-pretty '2.2.0'
  • Tutorial I followed for setting up the database with postgreSQL and also using React with Rails:

    https://www.digitalocean.com/community/tutorials/how-to-set-up-a-ruby-on-rails-project-with-a-react-frontend

    https://www.digitalocean.com/community/tutorials/how-to-use-postgresql-with-your-ruby-on-rails-application-on-ubuntu-18-04

  • Simple homepage:

Homepage screenshot

  • Users:

Users page screenshot

  • Add new user form:

Add new user screenshot

  • Edit user form:

Edit user form screenshot

  • JSON data display:

JSON data display page

my-first-rails-full-stack-app's People

Contributors

isaabutaa avatar

Watchers

 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.