Prerequisites
Before you begin, ensure you have the following installed:- Node.js (v16 or higher recommended)
- MySQL (v5.7 or higher)
- Git for cloning the repository
Quick Setup
Install Dependencies
Install all required npm packages:This will install the following key dependencies:
- Express.js for the web server
- MySQL2 for database connectivity
- Handlebars for templating
- Passport for authentication
- Puppeteer for PDF generation
Configure Environment Variables
Create a
.env file in the root directory with your configuration:.env
Replace
your_mysql_password with your actual MySQL password. The default port is 4001.Start the Development Server
Run the application in development mode with auto-reload:You should see:
What’s Next?
Now that vLife DGO is running, you can:- Explore the Installation Guide for detailed setup and production deployment
- Learn about Environment Configuration options
- Review the Authentication System to understand user management
Troubleshooting
Port Already in Use
Port Already in Use
If port 4001 is already occupied, change the Then restart the development server.
PORT value in your .env file:.env
Database Connection Error
Database Connection Error
Verify that:
- MySQL is running:
sudo service mysql status - Your credentials in
.envare correct - The database
vlifedgo_dbexists - Your MySQL user has proper permissions
Module Not Found Errors
Module Not Found Errors
Delete
node_modules and reinstall: