mitama-react-boilarplate
This is a react boilarplate to make SPA application for Mitama.
Directory Structure
.
├── README.md
├── front/
│ ├── dist/ # Frontend distribution directory
│ ├── package.json
│ ├── src/ # Frontend source directory
│ │ ├── App.js
│ │ ├── index.css
│ │ └── index.js
│ └── webpack.config.js
├── package.json
└── server/
└── index.js # Application entrypoint
/front/dist will be served as static files.
Usage
Setup
In root directory, please type
npm install
or
yarn
Apart from that, please setup front/ as same.
cd front; npm install
cd front; yarn
Build
You can use build command for only front/ directory.
Please use
cd front/; npm run build
or
cd front/; yarn build
to bundle your application