https://github.com/danielshow/hacknewsclone_graphql
HackerNews Clone with GraphQL Ruby
https://github.com/danielshow/hacknewsclone_graphql
api graphql heroku-deployment news rails ruby
Last synced: 4 months ago
JSON representation
HackerNews Clone with GraphQL Ruby
- Host: GitHub
- URL: https://github.com/danielshow/hacknewsclone_graphql
- Owner: Danielshow
- Created: 2019-05-05T11:49:27.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T12:44:00.000Z (almost 3 years ago)
- Last Synced: 2025-03-25T05:42:09.647Z (8 months ago)
- Topics: api, graphql, heroku-deployment, news, rails, ruby
- Language: Ruby
- Homepage:
- Size: 73.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## HackernewsClone GraphQL API
This Application is a graphql backend clone for Hackernews using GraphQL
- Users can post url links
- Votes for different URL
- Create an account
- Login
### Ruby version
- v2.53
### Setup
- CLone this application
- Create application.yml file and add the following variables
```
JWT_SECRET=
PG_USER=
PG_PASSWORD=
```
- Run `rails db:create` to create database
- Run `rails db:migrate` to run migrations
- Run `bundle install` to run all dependencies
- finally run `rails s` to start the server
- visit `localhost:3000/graphiql` to run queries
### Database creation
```
rails db:create
```
* Database initialization
#### Run migration using
```
rails db:migrate
```
* How to run the test suite\
rspec
## Stack
- Ruby on Rails
- GraphQL
## Limitation
Still in Development
## Contribution
- Clone this Repository and raise a pull request