Skip to content

rodgarcialima/react-hooks-hapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Hooks Hapi

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.

Features

Todo

  • Client tests. At this moment, Enzime does not supports React Hooks
  • Server tests.

Server Instructions (/server)

Creating a docker MongoDB container

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

Install server libs

yarn install

Execute MongoDB migrations

npx db-migration up or ./node_modules/db-migrate/bin/db-migrate up

Start the server

yarn start starts the server on port 4000

Client instructions

Install client libs

yarn install

Start the client

yarn start starts the client on port 3000

Author

Rodrigo Lima ([email protected])

About

Template project with React (with Hooks) and HapiJS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published