Next-react-graphql-apollo_Boostrap
Next-react-graphql-apollo_Boostrap copied to clipboard
React + GraphQL + Next.js project architecture that I play with right now
React + GraphQL + Next.js + Apollo + Scss + Typescript Starter
Project boostrap built with:
- React.js
- Next.js
- Typescript
- SCSS
- Apollo
- GraphQl
- EsLint
- Prettier
- Jest
- Nodemon
- Typegoose
- Type-graphql
How to use
npm i
npm run dev
Environment variables
You can access your .env variables by deconstructing 'process.env' object, both on client and server. Just make sure that you reboot the server when updating .env file.
Configuration
You should configure things like eslint, tsconfig, prettier etc. with things that suit you and your project. Configuration in this project is not perfect - it's just my own preference, and I'm open to suggestions :)
To see before coding;
- Check out this to read more about /server/graphql workings
- Context management choice
- Apollo context management
PS; I'm always looking for interesting freelance/full time opportunities, hmu @ [email protected]