Today you have basically two ways how to start new React application: NextJs or Create React App.
However, there is no fun in using other peoples frameworks so I created this application from scratch. If you ever wondered how to set up your own boilerplate. This is a good place to start.
You can try the application here (it might take a while before the free server wakes up)
📘 Backend API is running here. You can find the source code of the backend application here.
System Dependencies:
brew install nodebrew install yarn
Run development server:
yarn installyarn apollo:generate-types:watchyarn watch
yarn lint:tslint TS filesyarn lint:csslint CSSyarn lint:circular-dependenciesdetect circular dependenciesyarn apollo:generate-typesgenerate TS definitions from GraphQL schemayarn apollo:remove-all-typesremove all automatically generated TS definitionsyarn testrun jestdocker-compose uprun the application in Docker 🐳 container
- Optimize antd package with babel-plugin-import
- Create custom vendors config with DllPlugin
- Implement request password reset + request password change
- Implement automatic token refresh
Keep in mind that main and vendors packages are huge. I plan to implement babel-plugin-import and DllPlugin in the future.
SERVER_URL=https://node-type-orm-graphql.herokuapp.com/graphql yarn buildyarn prod