MonteHiking
This app helps you find interesting hiking locations.
This project was bootstrapped with Create React App.
Infrastructure
- staging: TODO
- production: montehiking.com
Pre requirements
node.js
:16.*
yarn
:1.22.*
tmux
:*
(optional, for local launch)
Development
- install
node
,yarn
,tmux
# tmux
brew install tmux
-
(optional) run
chmod 0755 ./tmux.sh
-
run
yarn install
on repository root. -
run
./tmux.sh
OR run parallel:
yarn run watch:po
yarn run watch:storybook
yarn run watch
Production
Just merge the changes into the main
branch.
Manual deploy
- run
yarn install --frozen-lockfile
on repository root. - run
yarn run deploy
When the build completes, the app will be published to Github Pages.
Available Scripts
In the project directory, you can run:
yarn run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
yarn run build:po
Generate typescript-compatible dictionaries from .po files.
yarn run build:storybook
Build storybook stories as static website.
yarn run deploy
Publish the production bundle to Github Pages.
yarn run watch
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
yarn run watch:po
Generate typescript-compatible dictionaries from .po files in watch mode.
yarn run watch:storybook
Runs the storybook in the development mode.
Open http://localhost:6006 to view it in the browser.
The page will reload if you make edits.
yarn run prettier
Run prettier.
See the documentation for the prettier
package for details.
yarn run lint
Run eslint.
yarn run test
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Learn More
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.