https://github.com/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.
https://github.com/edwardcdev/simple-directory-app
factorybot graphql-ruby rails5 react rspec semantic-ui webpack
Last synced: 22 days ago
JSON representation
A simple directory app that lists mock data of medical service providers. It is written on Rails, React, GraphQL, and so on.
- Host: GitHub
- URL: https://github.com/edwardcdev/simple-directory-app
- Owner: edwardcdev
- Created: 2021-10-17T13:18:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-10-17T13:23:05.000Z (over 3 years ago)
- Last Synced: 2025-02-13T12:53:48.211Z (3 months ago)
- Topics: factorybot, graphql-ruby, rails5, react, rspec, semantic-ui, webpack
- Language: Ruby
- Homepage:
- Size: 180 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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`