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

https://github.com/getstation/getstation.github.io

https://getstation.com/
https://github.com/getstation/getstation.github.io

Last synced: about 1 year ago
JSON representation

https://getstation.com/

Awesome Lists containing this project

README

          

# Station website

**Note:** This project uses [Gatsby v2](https://www.gatsbyjs.org/).

## ⚡️ Features

- **css-in-js** with Emotion: [website](https://emotion.sh/) - [plugin doc](https://www.gatsbyjs.org/packages/gatsby-plugin-emotion/?=emoti)
- API Prismic: [website](https://prismic.io/) - [plugin doc](https://www.gatsbyjs.org/packages/gatsby-source-prismic/?=prismic)
- React-Helmet: [plugin doc](https://www.gatsbyjs.org/packages/gatsby-plugin-react-helmet/?=gatsby-plugin-react-helmet)
- Offline: [plugin doc](https://www.gatsbyjs.org/packages/gatsby-plugin-offline/?=gatsby-plugin-offline)
- Sharp image processing library: [plugin doc](https://www.gatsbyjs.org/packages/gatsby-plugin-sharp/?=gatsby-plugin-sharp)
- Sitemap: [plugin doc](https://www.gatsbyjs.org/packages/gatsby-plugin-sitemap/?=sitemap)
- Polyfill.io: [plugin doc](https://www.gatsbyjs.org/packages/gatsby-plugin-polyfill-io/)
- Storybook: [website](https://storybook.js.org/)

## 🚀 Prerequisites

1. **Install the Gatsby CLI**

The Gatsby CLI helps you create new sites using Gatsby starters (like this one!)

```sh
# install the Gatsby CLI globally
npm install -g gatsby-cli
```

1. **Node version manager**

Install [NVM](https://github.com/creationix/nvm) to manage its version of Node:

```sh
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash
```

**In the project**, install and use the current version of Node:

```sh
# Installs the node version specified in the .nvmrc
nvm install
# Switches to the node version specified in the .nvmrc
nvm use
```

(Optional but **highly recommended**) Install [AVN](https://github.com/wbyoung/avn) to avoid having to run nvm use every time you open the project.

1. **Install Yarn**

Go to
[https://yarnpkg.com/docs/install](https://yarnpkg.com/docs/install/#mac-tab)

```sh
brew install yarn --ignore-dependencies
```

1. **Configuration and API Keys**

Create a `.env.development` at the root of the project.

```sh
# Prismic API_KEY
API_KEY=XXXXX_YOUR_TOKEN_XXXXX

# GraphQL
GRAPHQL_URI=http://127.0.0.1:4001/graphql

# Firebase
FIREBASE_API_KEY=xxx
FIREBASE_AUTH_DOMAIN=xxx
```

## 🔨 Commands

1. **Download dependencies**

```sh
yarn
```

1. **Start developing**

Navigate into your new site’s directory and start it up.

```sh
npm run develop
```

Your site is now running at `http://localhost:8000`

\_Note: You'll also see a second link: `http://localhost:8000/___graphql`. This is a tool you can use to experiment with querying your data. Learn more about using this tool in the [Gatsby tutorial](https://www.gatsbyjs.org/tutorial/part-five/#introducing-graphiql).\_

1. **Build**

```sh
npm run build
```

1. **Serve Build**

```sh
gatsby serve
```

1. **Launch Storybook**
```sh
npm run storybook
```