Skip to content

DaKoala/spring-frontend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

effe6c3 · Dec 22, 2019

History

92 Commits
Dec 21, 2019
Sep 23, 2019
Nov 18, 2019
Sep 23, 2019
Dec 22, 2019
Dec 22, 2019
Nov 5, 2019
Nov 5, 2019
Dec 8, 2019
Dec 8, 2019
Nov 5, 2019
Dec 7, 2019
Dec 7, 2019
Dec 7, 2019
Dec 7, 2019

Repository files navigation

Spring

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.

Tech Stack

Framework: TypeScript + React

Stylesheet: Less

State management: Mobx

Bundler: Webpack

Test: Jest(unit test) + Puppeteer(e2e test)

Package manager: yarn

Installation

Before start, some packages are required to be installed globally:

Download

git clone https://github.com/DaKoala/spring-frontend.git
cd spring-frontend
yarn # Install dependencies

Compiles and hot-reloads for development

yarn dev

Compiles and minifies for production

yarn build

Lint and auto fix TypeScript files

yarn lint

Remove all dependencies

yarn clean

File structure

  • index.tsx Main entrance of the project
  • App.tsx The root component
  • assets Static files (images, audio files, video files)
  • biz-components Business components (These components have the business logic integrated and can use the global store)
  • components General components (These components do not require specific context and cannot use the global store)
  • pages Page components (These components each corresponds to a route)
  • constants Global constants such as type , enum , interface and other constant variables
  • service Functions sending requests and parsing responses
  • stores Global store to manage state, powered by Mobx
  • styles Reusable stylesheets
  • test Test scripts
  • types Global TypeScript type declaration
  • utils Utility functions
  • email Email template HTML file

License

GPL-3.0