- Clone the project
git clone https://github.com/johinsdev/hotelApp
- Install dependencies
yarn install
ornpm i
- Create a
.env
file in the root like the.env.example
file. - yarn build
- yarn dev or npm run dev init server
- yarn db:seeds-hotels
- run client. How to?
- For dev you need to have mongodb db locally. How to?
- cd client
- Install dependencies
yarn install
ornpm i
- yarn start
- url
- server yarn build
- cd client
- yarn build:prod
With Homebrew you can just run brew install mongodb
and after brew services start mongodb
.
For get raven log create account here: Sentry
yarn dev
or
npm run dev
PS That can crash if this is the first time but don't worry give it 2 sec the scripts gonna work. He just need to created a dist folder :) This way you have only one command to run.
yarn dev:debug
or
npm run dev:debug
For seed just run one of this following comand. This is helpful in dev for making fake user.
This is only available in dev environment
- Seeds hotels
yarn db:seeds-hotels
- Clear all collection
yarn db:seeds-clear
- Cors
- Body-Parser
- Morgan
- Raven
- Http-Status
- Prettier
- Eslint Config Prettier
- NPS
- MongoDB
- Mongoose
- Webpack