Skip to content

A React framework for web artisans razzle (isomorphism)

Notifications You must be signed in to change notification settings

BearReact/imrazzle-js

Repository files navigation

About Imrazzle

Imrazzle is a web application framework with razzle, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Imrazzle takes the pain out of development by easing common tasks used in many web projects, such as:

Imrazzle is accessible, powerful, and provides tools required for large, robust applications.

Learning Imrazzle-js

How to use

Check your nodejs version is 13.5.0

Environmental parameters

  • PORT: 運行埠號
  • SITE_ENV: sandbox, staging) production
  • SITE_CODE: site code (ref: src/config/site.js, ex: default)
  • ROUTE_PREFIX_PATH: route prefix path (ex: /ap-main)
  • STATIC_BASE_URL: Static file base url (ex: http://static.com/static, /static)
  • API_BASE_URL: API Base path (ex: http://static.com, /api)
  • REACT_BUNDLE_PATH: is {assets.client.js} path

not setting env in:

  • RAZZLE_PUBLIC_DIR: {root is os path}

/Users/imagine10255/Project/ycgroup/200218-member-v4/build/public ./build/public if you set error path, you can't render success!

  • RAZZLE_ASSETS_MANIFEST

Quick Start

# Clone project
$ clone [email protected]:imagine10255/Imrazzle-js.git my-razzle-project

# Enter folder and Install, then copy environment setting
$ cd my-razzle-project && yarn

# use env variable
$ cp .env.locale.example .env

# Start develop
$ yarn dev

> 🚀 Ready on http://localhost:3000

# In another terminal panel Run Mocker Api
$ yarn test:mock

open browser example in http://localhost:3000

Develop

$ cp .env.production.example .env

# Ready Release Build Docker Image
$ docker-compose build

# Run and Build Docker Image
$ docker-compose up --build

> 🚀 Ready on http://localhost:3000