StickyBoard
Search…
Default Settings
Default setting must be set to run StickyBoard

stickyboard.config.js file

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
1
module.exports = {
2
metadata: {
3
title: 'StickyBoard',
4
description: 'On-Demand Dashboard Solution based on React',
5
meta_image: '/static/image/StickyBoard_logo_only.png',
6
favicon: '/static/image/favicon.png',
7
},
8
env: {
9
NODE_ENV: process.env.NODE_ENV,
10
SAMPLE: process.env.SAMPLE,
11
},
12
};
Copied!

.env file

.env file includes several environment variables required to run Node.js server.
StickyBoard uses dotenv package to load this file.
below code describes the sample .env file for StickyBoard.
.env
1
NODE_ENV=production
2
PORT=3000
3
4
DB_DATABASE=stickyboard
5
DB_HOST=localhost
6
DB_USER=root
7
DB_PASS=password
8
DB_PORT=3306
9
DB_DIALECT=mysql
10
11
SECRET_KEY=yoursecretkey
Copied!
Last modified 1yr ago