Skip to content

aravpatel19/nodejs-mysql

Repository files navigation

NodeJs app with MySQL Database

A simple nodejs app connected with mySQL database.

Getting Started

  1. Clone the repo
git clone https://github.com/aravpatel19/nodejs-mysql.git
cd nodejs-mysql
  1. Create a .env file in root directory and add the environment variables:
DB_HOST="localhost"
DB_USER="root" # default mysql user
DB_PASS=""
DB_NAME=""
TABLE_NAME=""
PORT=3000

Make sure to create the database and the corresponding table in your mySQL database.

  1. Initialize and start the development server:
npm install
npm run dev

database-screenshot

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors