Boilerplate for web store
-
local
- http://leprechaun.loc user client
- http://adm.leprechaun.loc admin client
- http://docs.leprechaun.loc/private OpenAPI docs
- http://api.leprechaun.loc RestFull API
- http://api.leprechaun.loc/socket.io/ websocket public (customer) API
- http://localhost:1080 Mailcatcher
- http://localhost:9010 MinIO (S3) category UI admin panel
- http://localhost:9014 MinIO (S3) product UI admin panel
- http://localhost:15672 RabbitMQ UI panel
- http://localhost:9024 Kafka UI panel
-
Enums
-
user type
CUSTOMER
: 1 (client user)SUPPORT
: 2 (admin support)ADMIN
3ROOT
4
-
order status
INIT
: 1 (cart)POSTED
: 2 (posted cart)IN_PROCESS
3 (cart is accepted by admin)COMPLETED
: 4CANCELED
: 5
-
product status
AVAILABLE
: 1OUT_OF_STOCK
: 2
-
product list sort
POPULAR
: 1PRICE_UP
: 2PRICE_DOWN
: 3NEW
: 4
-
label types
DISCOUNT
: discountNEW
: newPOPULAR
: popular
-
dashboard types
HISTORY
user product history
-
- run
git submodule update --init --recursive
to install all submodules - run
chmod +x ./scripts/*
- create
.env
file inside root directory based on.env.dist
file with own config parameters - install all npm dependencies inside all apps, utils and services folders (using
npm i
oryarn
commands) - run
sh docker.sh build
to deploy and start all containers - add
leprechaun.loc api.leprechaun.loc docs.leprechaun.loc adm.leprechaun.loc
aliases to Your/etc/hosts
list
make build
build and run containersmake start
start all containersmake stop
stop all containersmake down
remove all containersmake translation
move translationsmake protos
move generated.proto
files