Skip to content

Simple Hotel App with node and react for almundo

Notifications You must be signed in to change notification settings

johinsDev/hotelApp

Repository files navigation

HOTEL APP ALMUNDO

Get Started

Installation

  1. Clone the project git clone https://github.com/johinsdev/hotelApp
  2. Install dependencies yarn install or npm i
  3. Create a .env file in the root like the .env.example file.
  4. yarn build
  5. yarn dev or npm run dev init server
  6. yarn db:seeds-hotels
  7. run client. How to?
  8. For dev you need to have mongodb db locally. How to?

Run Client

  1. cd client
  2. Install dependencies yarn install or npm i
  3. yarn start
  4. url

Deploy

  1. server yarn build
  2. cd client
  3. yarn build:prod

Install Mongodb

With Homebrew you can just run brew install mongodb and after brew services start mongodb.


Raven Log

For get raven log create account here: Sentry

Scripts

DEV

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.

DEV-DEBUG

yarn dev:debug

or

npm run dev:debug

Seeds

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

Techs

SERVER

CLIENT


About

Simple Hotel App with node and react for almundo

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages