Go to file
ClarkXia 7fb3749e4f
test: test case for devServer (#4042)
* fix: test case

* feat: dev test
2021-01-22 10:23:14 +08:00
.github chore: docs icestark (#3893) 2020-12-22 12:55:35 +08:00
docs docs: format code in ssr docs (#4004) 2021-01-12 17:58:42 +08:00
examples fix: config of webpackPlugins (#4029) 2021-01-21 14:44:46 +08:00
packages fix: config of webpackPlugins (#4029) 2021-01-21 14:44:46 +08:00
scripts chore: version (#4019) 2021-01-14 12:25:40 +08:00
test test: test case for devServer (#4042) 2021-01-22 10:23:14 +08:00
.commitlintrc.js feat: initial project 2020-02-13 23:14:08 +08:00
.editorconfig feat: initial project 2020-02-13 23:14:08 +08:00
.eslintignore chore: remove rax packages 2020-11-17 15:15:00 +08:00
.eslintrc.js feat: auto buildin icestore (#3932) 2020-12-22 15:32:13 +08:00
.gitignore chore: remove mp scaffold from create-ice (#3912) 2020-12-14 10:48:10 +08:00
CHANGELOG.md feat: initial project 2020-02-13 23:14:08 +08:00
LICENSE feat: initial project 2020-02-13 23:14:08 +08:00
README.md docs: replace createApp with runApp (#3643) 2020-10-21 11:09:25 +08:00
README_zh-CN.md docs: replace createApp with runApp (#3643) 2020-10-21 11:09:25 +08:00
codecov.yml Feat/enhance useRequest (#3243) 2020-06-08 09:49:38 +08:00
jest.config.js feat: workflow of ci test (#3934) 2020-12-22 10:43:23 +08:00
lerna.json chore: update version (#3411) 2020-08-10 16:22:43 +08:00
package.json feat: workflow of ci test (#3934) 2020-12-22 10:43:23 +08:00
tsconfig.json Refactor: mock service (#4015) 2021-01-14 10:07:06 +08:00
tsconfig.settings.json feat: initial project 2020-02-13 23:14:08 +08:00
yarn.lock chore: version (#4019) 2021-01-14 12:25:40 +08:00

README.md

English | 简体中文

Downloads Version GitHub license PRs Welcome Gitter

A universal framework based on React.js

Features

  • 🐒 EngineeringOut of the box support for ES6+、TypeScript、Less、Sass、 CSS Modulesetc
  • 🦊 RoutingPowerful Routing System, supports configured routing and conventions routing
  • 🐯 State managementBuilt-in icestore, lightweight state management solution based on React Hooks
  • 🐦 ConfigModes and Environment Variables configuration in the config file
  • 🐶 LoggerBuilt-in logger solution, it's a flexible abstraction over using console.log as well
  • 🐱 HelpersBuilt-in helpers, provide some useful utility functions
  • 🦁 Application configurationProvide powerful and extensible application configuration
  • 🐴 HooksProvide Hooks APIs such as useModel and useHistory, etc
  • 🐌 Plugin systemThe plugin system provides rich features and allow the community to build reusable solutions
  • 🐘 TypeScriptSupport TypeScript
  • 🐂 ModernSupport SPA、SSR、MPA and Micro-frontend

Quick start

Setup by Iceworks

We recommend creating a new icejs app using Iceworks:

demo

See Quick start by Iceworks for more details.

Setup by CLI

We recommend creating a new icejs app using create-ice, which sets up everything automatically for you. To create a project, run:

$ npm init ice <project-name>

npm init <initializer> is available in npm 6+

Start local server to launch project:

$ cd <project-name>
$ npm install
$ npm run start # running on http://localhost:3333.

It's as simple as that!

Manual Setup

icejs is really easy to get started with. Install ice.js, react and react-dom in your project:

$ mkdir <project-name> && cd <project-name>
$ npm install ice.js react react-dom

Open package.json and add the following scripts:

{
  "name": "project-name",
  "scripts": {
    "start": "icejs start",
    "build": "icejs build"
  },
  "dependencies": {
    "ice.js": "^1.0.0",
    "react": "^16.12.0",
    "react-dom": "^16.12.0"
  }
}

Create the pages directory, then create the first page in pages/index.jsx:

import React from 'react'

const HomePage = () => {
  return <div>Welcome to icejs!</div>
}

export default HomePage

Configure an application information in the src/app.js file, but it is optional:

import { runApp } from 'ice'

const appConfig = {
  router: {
    type: 'browser',
  },

  // more...
}

runApp(appConfig)

Finally, To start developing your application run npm run start. The application is now running on http://localhost:3333.

Examples

Contributing

Please see our CONTRIBUTING.md

Ecosystem

Project Version Docs Description
icejs icejs-status docs A universal framework based on react.js
icestark icestark-status docs Micro Frontends solution for large application
icestore icestore-status docs Simple and friendly state for React
iceworks iceworks-status docs Visual Intelligent Development Assistant
formily formily-status docs Performant, flexible and extensible form solusion
ahooks ahooks-status docs React Hooks Library

Community

DingTalk community GitHub issues Gitter
issues gitter

License

MIT