Default Settings
Default setting must be set to run StickyBoard
stickyboard.config.js file includes metadata(e.g., title, description) required to render the view, and environment variables will be used to front-end. You can change this file directly.
Environment variables for the back-end must be included in .env file(e.g., .env.development, .env.production). Refer to the below section.
stickyboard.config.js
module.exports = {
metadata: {
title: 'StickyBoard',
description: 'On-Demand Dashboard Solution based on React',
meta_image: '/static/image/StickyBoard_logo_only.png',
favicon: '/static/image/favicon.png',
},
env: {
NODE_ENV: process.env.NODE_ENV,
SAMPLE: process.env.SAMPLE,
},
};
.env file includes several environment variables required to run Node.js server.
below code describes the sample .env file for StickyBoard.
.env
NODE_ENV=production
PORT=3000
DB_DATABASE=stickyboard
DB_HOST=localhost
DB_USER=root
DB_PASS=password
DB_PORT=3306
DB_DIALECT=mysql
SECRET_KEY=yoursecretkey
Last modified 2yr ago