GithubHelp home page GithubHelp logo

crudnodemysql's Introduction

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

crudnodemysql's People

Contributors

ayeshakhan07 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.