Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andresgutgon/after-with-apollo-typescript-styled-components-and-fatigue
Trying After.js as an alternative to Next.js as an Universal/Isomorphic React App
https://github.com/andresgutgon/after-with-apollo-typescript-styled-components-and-fatigue
afterjs apollographql reactjs styledcomponents typescript
Last synced: about 2 months ago
JSON representation
Trying After.js as an alternative to Next.js as an Universal/Isomorphic React App
- Host: GitHub
- URL: https://github.com/andresgutgon/after-with-apollo-typescript-styled-components-and-fatigue
- Owner: andresgutgon
- Created: 2019-02-02T14:31:45.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T15:36:39.000Z (almost 6 years ago)
- Last Synced: 2024-04-14T08:45:25.853Z (9 months ago)
- Topics: afterjs, apollographql, reactjs, styledcomponents, typescript
- Language: JavaScript
- Size: 147 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# After.js x Razzle x Apollo Example
# start SWAPI graphql server
`git clone [email protected]:graphql/swapi-graphql.git`
`cd swapi-graphql`
`yarn install`patch it with cors, if needed
`yarn add cors`
```js
// ./src/server/main.js
import express from 'express';
import graphqlHTTP from 'express-graphql';
import swapiSchema from '../schema';
import cors from 'cors';
const app = express();
app.use(cors());
...
````yarn start`
this will start a local server on `http://localhost:8080` ; port may change, update it in `createApolloClient.js`
# start example
`yarn install`
`yarn start`