Skip to content

duocun/duocun-mall

Repository files navigation

Github Action Node version code style: prettier HitCount

duocun-mall

duocun-mall is a shopping mall frontend using duocun-api as its backend

Technology Stack

Installation

git clone https://github.com/duocun/duocun-mall.git
cd duocun-mall
npm i
npm i -g ionic

Serve

npm run start

You can set a different port:

ionic serve --port 5008

Test

IMPORTANT Backend api should be running at 8000 port. Otherwise, test should fail.

ng test

Prettier Lint Check & Fix

Lint Check

npm run lint

Lint Fix

npm run prettify

Deployment

ionic build --prod

Docker compose

Build and run

Start docker container.

docker-compose up -d

Once docker container is up and running go to http://localhost:5008