This is the front-end part of the Spring project. This project is a course project of the course Software Engineering offered in 2019 Fall Semester in NYU Shanghai.
Framework: TypeScript + React
Stylesheet: Less
State management: Mobx
Bundler: Webpack
Test: Jest(unit test) + Puppeteer(e2e test)
Package manager: yarn
Before start, some packages are required to be installed globally:
git clone https://github.com/DaKoala/spring-frontend.git
cd spring-frontend
yarn # Install dependenciesyarn devyarn buildyarn lintyarn cleanindex.tsxMain entrance of the projectApp.tsxThe root componentassetsStatic files (images, audio files, video files)biz-componentsBusiness components (These components have the business logic integrated and can use the global store)componentsGeneral components (These components do not require specific context and cannot use the global store)pagesPage components (These components each corresponds to a route)constantsGlobal constants such astype,enum,interfaceand other constant variablesserviceFunctions sending requests and parsing responsesstoresGlobal store to manage state, powered by MobxstylesReusable stylesheetstestTest scriptstypesGlobal TypeScript type declarationutilsUtility functionsemailEmail template HTML file