This is a sample application to demonstrate the difference between SWR and React Query. This monorepo consists of the following packages:
- components: Components library
- react-query-nextjs: Next.js application bundled with React Query
- strapi: Dockerized Strapi application
- swr-nextjs: Next.js application bundled with SWR
This boilerplate is built using the following technologies:
git clone https://github.com/ghoshnirmalya/swr-vs-react-query
npx lerna bootstrap
From the root directory, we can run the following command to start our applications:
yarn dev
The above command will start the swr-nextjs application on http://localhost:3001/ and the react-query-nextjs application on http://localhost:3002/.
cd packages/strapi
docker-compose up
We need to start Docker and then run the above command which will change the current directory to the backend package’s directory and then start the backend package. If everything goes well, it’ll be up and running on http://localhost:1337.
- Hasura Next.js Boilerplate
- Strapi Next.js Boilerplate
- React Search Box
- LinkedIn Clone using Create React App
- Building mono-repo applications using Lerna
This project is licensed under the MIT License.