Skip to content

AyeshaKhan07/CRUDNodeMySql

Repository files navigation

CRUD USING NODE, EXPRESS AND MY SQL

articleocw-57e139c25d2be

About

This project was created to study the concepts of CRUD operations using node, express and mysql.

Prerequisite

Installation of:

  • Docker
  • Docker compose
  • Node

Technologies

How To Use

# Clone this repository
$ git clone https://github.com/AyeshaKhan07/CRUDNodeMySql.git

# Go into the repository
$ cd CRUDNodeMySql

# Install dependencies
$ npm install

# Install mysql using docker
$ cd database
$ cd my_sql
$ docker-compose up -d

# Create .env file and copy the content of sample.env to .env

# Run the app
$ node index.js

If you are seeing these two lines logged on the console, congratulatons your server is up successfully with mysql connected.

image

Populate The Data

Dummy data can be populated by seeder.js file. After installing mysql using docker and start the container, run the following command to populate the data:

node seeder.js

To Conclude

The server is up with mysql connected, now you can make API calls using postman or any other platform.

Author

@AyeshaKhan07

About

Basic CRUD with MySQL, Node and ExpressJs

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published