A web app codebase based on webcube for coding interview challenges
iOS 7+ ✔ | Android 4+ ✔ | 11+ ✔ |
- configs/ - Project-defined configuration files and build scripts
env.sample.config
- Project-defined template file for env.config
- app/ - All source code for web app (shared between client-side and server-side), including JS, CSS and assets
- common/ - Reusable code shared between entry points
- components/ - Presentational components shared between entry points
- ...
- job-list/ - An entry point. See Multiple entry points
- common/ - Reusable code shared between feature sets
- components/ - Presentational components shared between feature sets
- ...
- main/ - The default/global feature set
- components/ - Presentational components only used by this feature set
- containers/ - Container components only used by this feature set
App.jsx
- ...
- ...
index.js
- common/ - Reusable code shared between feature sets
- ...
- common/ - Reusable code shared between entry points
- staticweb/ - For static web deployment or testing
- job-list/
index.html
,deploy.js
,deploy.scss
- ...
- job-list/
- build/
- public/ - Generated by Gulp and Webpack, do not manually modify
- ...
index.js
- For single entry point, imported by other projectspackage.json
- dependencies and npm scripts based on webcubeyarn.lock
- yarn's lockfileenv.config
- Project-defined configuration options for webcube and custom scripts. See Getting Started
First of all, you must create an env.config
file in the root directory. configs/env.sample.config
is a complete template file for env.config
cp ./configs/env.sample.config env.config
Install dependencies:
npm run update
Follow webcube's document to install / build / test / deploy / ...
Similiar to Airbnb JavaScript Style Guide, Airbnb React/JSX Style Guide
More detail:
Committing Changes with Commitizen
NOTE: Need
npm install commitizen -g
git add .
git cz