This project is created to demonstrate how a SPA can be created using modern React with hooks, TypeScript at core, GraphQL with Apollo client and styled-components. The application is using the public GraphQL API of SpaceX https://api.spacex.land/graphql/
- React at core
- Typescript
- Apollo Client (GraphQL)
- styled-components
- Webpack
- react-router
Commands that can be executed are listed in package.json
file. Node has to be installed to run the project.
- Use
npm i
oryarn
to install packages, - Use
npm start
oryarn start
to start the application in development mode inlocalhost:8080
, - Use
npm run generate
oryarn generate
to generate the schema, type definitions and hooks to use GraphQL, - Use
npm run build
oryarn build
to build the static project ready for production, located at/prod
.