Google Cloud Platform(GCP), Node.js, Express.js, Cloud SQL, Terraform, GitHub CI/CD, Packer
Before you begin, ensure you have met the following requirements:
- Node.js: Download and Install Node.js
- npm (Node Package Manager): Included with Node.js installation
-
Clone the repository:
git clone git@github.com:CloudComputing-AayushS/webapp.git -
Navigate to the project directory:
cd webapp -
Install dependencies:
npm install -
Set up the database:
- Create a MySQL database.
- Update the database configuration in config.js or .env file with your MySQL database credentials.
-
Set environment variables:
Create a .env file in the root directory and add the following:
DB_USERNAME=your_mysql_user DB_PASSWORD=your_mysql_password DATABASE=your_mysql_database
To run the application locally, use the following command:
npm run dev