Installation

Requirements

You need Node.js (at least 10.x version) installed on your machine. If you don't have it, you should install it

  1. Node 10.x
  2. Mysql or postgress etc..
  3. Redis

Installation

  1. Install necessary dependencies
    • Via node npm package manager - Run npm install on the project root
    • Via node yarn package manager - Run yarn install on the project root
  2. Configuration for mysql database and Redis data structure store
  3. Install your mysql database for your system and also setup another database
  4. Via Docker
    • Install Docker on your machine
    • Run docker-compose up -d in a terminal on the project root. This will start 3 containers:
      • redis container - required for session management;
      • haproxy container - required only for a staging/production setup;
    Via another chosen solution.
    • Install your Redis server
    • Change connection configuration, from your root to .env and change the following configurations with your own:
  5. Setup .env Configuration after run following command
    • For table migration run npm run knex migrate:up
    • For demo data seed run npm run knex seed:run
    • For run project npm run start

Configuration

  1. Create the database on your server
  2. Setup your .env file
  3. Open and edit the /.env file and provide your server details:
  4. Enviroments NODE_ENV: for development, production, staging
  5. If setup other database click here Knex setup
  6. knex config file path is root directory for project ./db/knexfile.js
  7. For Database: set by enviroment
  8. NODE_ENV=development
    HTTP_HOST=0.0.0.0
    PORT=8000
    
    # Database connection via development credentials
    DATABASE_HOST=127.0.0.1
    DATABASE_PORT=5432
    DATABASE_NAME=node
    DATABASE_USER=dev
    DATABASE_PASSWORD=root
    
    # Database connection via Production credentials
    STG_DATABASE_HOST=127.0.0.1
    STG_DATABASE_PORT=5432
    STG_DATABASE_NAME=node_prod
    STG_DATABASE_USER=dev
    STG_DATABASE_PASSWORD=root
    
    # Database connection via Staging credentials
    PROD_DATABASE_HOST=127.0.0.1
    PROD_DATABASE_PORT=5432
    PROD_DATABASE_NAME=node_prod
    PROD_DATABASE_USER=dev
    PROD_DATABASE_PASSWORD=root
                                        

Folder Structure

Here is the general structure of Laravel application:


Metordash-dashboard
| .bin
    - www
| db
    | migration
    | seeds
    - index.js
    - knexfile.js
| features
    | login
        | command
        - constants.js
        - init-auth-middleware.js
        - repository.js
        - routes.js
    | register
        | command
        - constants.js
        - repository.js
        - routes.js
    | logout
        | command
        - constants.js
        - repository.js
        - routes.js
| public
    | assets
    | css
    | js
    | vendors
| routes
    - index.js
| views
    - index.pug
- .env.example
- .gitignore
- app.js
- docker-compose.yml
- ecosystem.config.js
- package.json
                                

User credentials


username:admin@Metordash.com
password:secret
                                

Bootstrap Components

Bootstrap has wonderfull documentation on the following components::

Bootstrap for extra component https://getbootstrap.com/docs/4.0/components/

Browser Support

Supports all major Browsers like Google Chrome, Mozilla Firefox, Safari, Opera, Internet Explorer 9 and above.

Source & Credits

All images and videos are for preview purposes only and are not included in the download files. Images are of copyrights under Creative Commons CC0.


Images



Plugins



CSS & Fonts