edwardcdev / simple-directory-app

A simple directory app that lists mock data of medical service providers. It is written on Rails, React, GraphQL, and so on.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Directory App

This repo is a simple demo for a directory of medical providers.

Specifications

  • Graphql-Ruby
  • Rails 5
  • Webpacker
  • React Semantic
  • RSpec
  • Factory Bot

Functions

  • CRUD operations via GraphQL
  • Infinite Scroll
  • Search

Installation

  • Prerequisites: Postgres 10, run psql
  • In psql, create the database and db user
CREATE USER rails_graphql_react_dev WITH PASSWORD 'rails_graphql_react_dev' CREATEDB CREATEROLE SUPERUSER;
CREATE DATABASE rails_graphql_react_dev WITH OWNER rails_graphql_react_dev;
CREATE USER rails_graphql_react_test WITH PASSWORD 'rails_graphql_react_test' CREATEDB CREATEROLE SUPERUSER;
CREATE DATABASE rails_graphql_react_test WITH OWNER rails_graphql_react_test;
\q
  • run yarn install
  • run bundle
  • run rails db:drop db:setup
  • run rails s
  • (optional) run webpack-dev-server

About

A simple directory app that lists mock data of medical service providers. It is written on Rails, React, GraphQL, and so on.


Languages

Language:Ruby 57.2%Language:JavaScript 33.5%Language:HTML 8.0%Language:CSS 0.8%Language:CoffeeScript 0.2%Language:SCSS 0.2%