Skip to content

Parcel + React + Router + CSS Modules + SASS + Api-Now + Bulma

License

Notifications You must be signed in to change notification settings

jmunox/parcel-ui-boilerplate-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 Parcel2 UI

Parcel2 + React + Router + CSS Modules + SASS + Api-Now + Bulma

Lightweight version, Based on the work of https://github.com/ngduc/parcelui

And more:

  • Lazy loading (code splitting) for a page (Route).
  • CSS scoping using CSS Modules: just import a local CSS or SASS file and use it.
  • Store management with react-easy-state (easier than Redux, MobX).
  • Component unit testing with Jest & Enzyme.
  • Making Ajax requests using Whatwg-fetch Req with Mock APIs (json-server).
  • Mock API server with api-now.
  • Responsive and modular CSS using Bulma CSS framework.

🔧 Installation

Clone this project:

git clone https://github.com/jmunox/parcel-ui-boilerplate-js.git your-app
cd your-app
yarn

⚙️ Commands

yarn mock-api         launch mock API Server using https://github.com/ngduc/api-now

yarn dev              launch DEV mode takes 1.4s (tsc watch, parcel & mock-api)
yarn test:watch       run jest --watch (auto run test files)

yarn build            build for PROD to static directory ./dist
yarn serve            serve static built dir "./dist" using api-now (or any web server)

CSS

  • SCSS is recommended, but optional. You can also use ".css" files normally.

Bulma

About

Parcel + React + Router + CSS Modules + SASS + Api-Now + Bulma

Resources

License

Stars

Watchers

Forks

Packages

No packages published