Skip to content

Vel8397/nodejs-mysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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/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

About

A simple Node Js app connected with MySQL database.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 59.4%
  • HTML 20.8%
  • CSS 19.8%