Template project with React (with Hooks) and HapiJS
The goal of the project is to learn how to fully replace redux with new reaction hooks and create a blueprint for future projects.
- Redux was replaced by React Hooks (useContext, usetState, useRef, useEffect)
- Authentication with JWT tokens
- Using immer for changing state (https://github.com/immerjs/immer)
- Using tailwindcss for CSS (https://github.com/tailwindcss/tailwindcss)
- Login, Admin pages
- Client tests. At this moment, Enzime does not supports React Hooks
- Server tests.
docker run --name <YOUR_MONGODB_CONTAINER_NAME> -p 27017:27017 -d mongo
or start your existing instance docker ps -a
, get container image id and run docker start <YOUR_MONGODB_CONTAINER_ID/NAME>
. Ensure you're using port 27017, or change on server .env
and database.json
yarn install
npx db-migration up
or ./node_modules/db-migrate/bin/db-migrate up
yarn start
starts the server on port 4000
yarn install
yarn start
starts the client on port 3000
- Go to http://localhost:3000
- email:
[email protected]
- password:
rod123
Rodrigo Lima ([email protected])