Sign inSign up

techadminasianet/core-mweb

By techadminasianet

•Updated over 4 years ago

Image
0

430

techadminasianet/core-mweb repository overview

$ cp ./server/_env ./server/.env $ npm install $ npm start

⁠Features

  • ES2015/16 with Babel⁠
  • Universal rendering with support for data fetching and code splitting.
  • Hot reloading on both client and server
  • Locally scoped CSS with CSS modules⁠
  • Development and release builds with Webpack 2⁠
  • State management with Redux⁠

⁠Commands

⁠npm start

Serves the app in development mode

NOTE: This is simply an alias for npm run serve.

⁠npm run prod:build

Builds the app ready for release

⁠npm run prod:serve
⁠(WEBPACK_DEV_SERVER=false npm run serve)

Serves the app in release mode

NOTE: Requires you to first build the app with npm run prod:build.

⁠Environment Variables

Environment variables are defined via Unix env vars and are documented in the ./server/_env⁠ file.

To avoid the hassle of having to define env vars on your local machine during development we recommend you simply rename the ./server/_env⁠ file to ./server/.env which, in the absence of a predefined NODE_ENV, will be copied to your environment.

NOTE: Any of the environment variables can be made available to the client by explicitly declaring them in the root Html⁠ component. This extra step is required to prevent accidentally leaking sensitive data to the client.

Tag summary

Content type

Image

Digest

Size

413.8 MB

Last updated

over 4 years ago

docker pull techadminasianet/core-mweb