Casa Castillo is one of the best lodging options in the area through excellence in service, security and avant-garde, achieving a pleasant and unforgettable stay for our clients.
Inside the root folder create an .env
file with the following keys:
Key | Value | Description | Required |
---|---|---|---|
REACT_APP_API_URL | http://127.0.0.1 | Api URL for the Casa Castillo backend | True |
Before running the development server we need to install the project dependencies:
yarn install
We can run the development server with the next command:
yarn start:app
The command above will run a development server at http://127.0.0.1:3000/
To create the project production build we can use the following command:
yarn build:app
Once the project build is done, it's ready to publish in any deployment service.
To run storybook execute the following command:
yarn start:sb
The command above will run a server at http://127.0.0.1:6006/
To create the storybook production build execute:
yarn build:sb
To have all the development environment automated we have a settings.json file with the following configuration:
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.formatOnSave": true,
"editor.rulers": [80],
"eslint.packageManager": "yarn",
"eslint.validate": ["javascript", "typescript", "ts", "tsx"],
"typescript.format.insertSpaceAfterOpeningAndBeforeClosingEmptyBraces": false
}