Re-implemented with create-react-app with redux for state management.
-
Install
node
using one of these methods: -
Download code, install packages:
git clone https://github.com/Small-Bodies-Node/sbn-portal-site.git
cd sbn-portal-site
npm install
-
Run development server and follow instructions:
npm run start
This repo comes with bash scripts for building/deploying on unix-like systems. All such scripts begin _
. These scripts typically wrap around the create-react-app
scripts launched with npm run build
and then deploy using rsync
, etc.
Global SCSS is available. However, on a per-component basis we're using MaterialUI again, both for its ready theme-ing and for its encapsulate-able scss-like css-in-js stylings.
For layout, we're heavily using css grid. If you haven't used css-grid before then see the talk "CSS Grid Changes Everything".
- Typescript: if you aren't using typescript, then behold my works and despair.
- Code formatting: VSCode settings, as well as more generic
.editorconfig
settings are provided to encourage consistent code formatting. Husky/Lint-Staged are integrated with the git/package.json setup to force.prettierrc
code-formatting rules at commit time.
We're using redux because this app is going to get super complicated and we'll want to manage state in a centralized manner.