Skip to content

Latest commit

 

History

History
76 lines (46 loc) · 1.18 KB

README.md

File metadata and controls

76 lines (46 loc) · 1.18 KB

Ant Design Pro

This project is initialized with Ant Design Pro. Follow is the quick guide for how to use.

Environment Prepare

Install node_modules:

npm install

or

yarn

Provided Scripts

Ant Design Pro provides some useful script to help you quick start and build with web project, code style check and test.

Scripts provided in package.json. It's safe to modify or add additional script:

Start project

npm start

Not to use mock API

npm run start:no-mock

Build project

npm run build

Check code style

npm run lint

You can also use script to auto fix some lint error:

npm run lint:fix

Test code

npm test

More

You can view full document on our official website. And welcome any feedback in our github.

Deployment

Using docker nginx image

  1. npm run build

  2. replace the output ./docker/dist directory in ./docker with the newly generated ./dist directory.

  3. docker build ./docker -t frontend-dev

  4. docker run -d -p 8002:80 frontend-dev