This is a React application that demonstrates the concept of "local first" by using a combination of local state management and remote data synchronization.
Code of this educational project is far from perfect and intended to only to be small example. Please don't look for the best practices of frontend or backend development here. Code of this project was written to demonstrate that "local first" approach doesn't need to be set up over only perfect designed applications.
To get started with the project, follow these steps:
- Clone the repository
git clone https://github.com/metarhia/react-local-first-example.git
- Choose the correct node version
nvm install
- Install dependencies
npm install
- Prepare env files
npm run prepare:env
- Run the infrastructure
npm run infrastructure:start
- Run the migrations
npm run migrate
- Start the development server
npm run dev
- Stop infrastructure
npm run infrastructure:stop