Install mysql on your server.
Install nodejs on your server.
After install mysql and node, please run the following commands.
npm install -g pm2
npm install -g nodemon
npm install -g react-scripts
npm install -g sequelize
npm install -g sequelize-cli
npm install
cd client
npm install
cp .env.sample .env
cd client
cp .env.sample .env
PROD_MYSQL_HOSTNAME: Your Mysql hostname (default: localhost)
PROD_MYSQL_PORT: Your Mysql port (default: 3306)
PROD_MYSQL_USERNAME: Your Mysql username (default: root)
PROD_MYSQL_PASSWORD: Your Mysql password
PROD_MYSQL_DATABASE: Your Mysql hostname (default: utc_chat)
Create a new database called "utc_chat" on your server.
After create a new database please run the following command to init your database.
sequelize db:migrate
sequelize db:seed:all
npm run dev
Start server
npm start
Stop server
npm stop