Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 668 Bytes

File metadata and controls

27 lines (24 loc) · 668 Bytes

NodeJs app with MySQL Database

A simple nodejs app connected with mySQL database.

Getting Started

  1. Clone the repo
git clone https://github.com/verma-kunal/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

running app