Skip to content

maswalker/bootstrap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bootstrap

0. Overview

1. Deploy

1.1 Environment

In this document, I depoly the system on Centos 7. If you are using any other OS, only a slight adjustment is needed.

1.2. Install Node v14

curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash
sudo yum install nodejs

1.3. Configuration file

create xxx/.env

PROJECT=xxx

AMQP_HOST=127.0.0.1
AMQP_PORT=5672

MYSQL_HOST=127.0.0.1
MYSQL_PORT=3306
MYSQL_USERNAME=root
MYSQL_PASSWORD=
MYSQL_DATABASE=xxx
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=

API_PORT=9000
ADMIN_PORT=9001

CHECK_IP=0

NODE_ENV=development

1.4. Install Node Libraries

npm i

1.5. Build Source Code

npm run build

1.6. Create Database

CREATE DATABASE xxx DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;

1.7. Initial Database

node dist/tools/initdb.js

1.8. Start Services

pm2 start all.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors