Skip to content

A React framework for web artisans razzle (isomorphism)

Notifications You must be signed in to change notification settings

BearReact/imrazzle-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

625e021 · Mar 22, 2020
Mar 4, 2020
Mar 17, 2020
Mar 9, 2020
Mar 22, 2020
Mar 22, 2020
Mar 17, 2020
Feb 27, 2020
Feb 17, 2020
Mar 2, 2020
Mar 2, 2020
Mar 17, 2020
Mar 18, 2020
Feb 26, 2020
Mar 17, 2020
Mar 22, 2020
Feb 27, 2020
Mar 9, 2020
Mar 22, 2020
Mar 2, 2020
Mar 22, 2020
Mar 22, 2020
Mar 17, 2020
Mar 17, 2020
Mar 22, 2020

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