Skip to content

aryanagarwal21/JS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCLUB secy task no 5

I had zero idea about backend development ,I only knew little bit about MySQL(from school) so in the past 3 days I have learnt some parts of nodejs and how to develop a backend.
First I installed MySQL for database and Xampp Control Panel and thunder client extension in VS Code.
Added json package to my project folder using powershell window
001

Installed packages

Installed mysql,express,body-parser and nodemon packages using terminal

started local server

app.js file code

Require all the packages at top of the file and set the listening port to be 5000 002

Started Xampp control panel to start MySql and then opened phpMyAdmin

003

created database using phpMyAdmin ss_pclub and table student_data with following structure

004

Connected Node.js with MySQL

005

Entered some records data through phpMyAdmin

Code for displaying whole data

006

Filtering Data

I could not find way to filter using multiple parameters so I have used only single parameters for filtering
007 008 009 010

#Deleting a record I have written query just to delete a record on the basis of RollNo
011

Adding a Record

Using Post method
12

Updating a Record

I have kept only branch and name to be updatable
013

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published