Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/peterj/shortly

URL shortener with React, Apollo and GraphQL
https://github.com/peterj/shortly

apollo apollo-client graphql reactjs

Last synced: 20 days ago
JSON representation

URL shortener with React, Apollo and GraphQL

Awesome Lists containing this project

README

        

### Shortly

Simple URL shortener built with React, Apollo and GraphQL. You can find the
corresponding tutorials
[here](https://medium.com/@pjausovec/building-url-shortener-using-react-apollo-and-graphql-part-i-467aef8c64ce)

### Set up Graphcool

This project uses a Graphcool service. Visit [Graphcool](http://graph.cool) to
sign-up and get a free account. To get started, install the Graphcool CLI first,
login and then deploy the Graphcool service:

```
cd graphcool

# Login to graphcool
graphcool login

# Deploy the graphcool service
graphcool deploy

# Get the API URLs
graphcool info
```

Next, paste the Simple and Subscriptions API URLs to index.js.

### Run the project

After you've set up Graphcool and pasted the Simple and Subscriptions API URLs
to index.js, you can run `yarn start` to start the website.

## License
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fpeterj%2Fshortly.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fpeterj%2Fshortly?ref=badge_large)