Installation
To setup the Hexadash in local environment, follow below-mentioned steps:
Install Prerequisites
Make sure to have all above prerequisites installed & running on your computer.
Prerequisites
ExpressJs has a set of requirements in order to run smoothly in specific environment. Please see requirements section in Express js documentation.
Please follow below steps to install and setup all prerequisites:
- MongoDB
Make sure to have the MongoDB installed & running in your computer. If you already have installed mongodb compass on your computer, you can skip this step.
-
NPM
You will get npm alongside with Nodejs installation
After you finished with the above steps, you can run the following commands to run the Nodejs Admin Dashboard in local environment:
Command | Description |
---|---|
npm install |
command to install all of the framework's dependencies. |
.env |
The root directory of your application will contain database credentials |
Please fill your DB credentials in the .env file.
DATABASE_HOST = 127.0.0.1
DATABASE_PORT = 27017
DATABASE_NAME = hexadash
|
|
MIgration
|
This will migrate the database tables. For more details visit https://mongoosejs.com/docs/documents.html |
Mongodb Start
|
start the connection of mongodb database. |
npm start
|
Once the server starts successfully, you can access the application by navigating to http://127.0.0.1:5000 in your web browser.When you run npm start, it will automatically compile SCSS to CSS and locate the compiled CSS at public/css/all-custom.css. Additionally, it will watch for any changes in your SCSS files and automatically recompile the CSS every time you make changes. |