Shakthi011001 / Own-RESTful-Wiki-API

API creation and performing GET,PUT,PATCH,UPDATE,DELETE Operations for an Article from API.. Built from Scratch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Own-RESTful-Wiki-API

  • Creation of API
  • Connecting database using Mongoose
  • API testing done using Postman
  • Use of Express js

Server Starting Code

//jshint esversion:6

const express = require("express"); const bodyParser = require("body-parser"); const ejs = require("ejs"); const mongoose = require('mongoose');

const app = express();

app.set('view engine', 'ejs');

app.use(bodyParser.urlencoded({ extended: true })); app.use(express.static("public"));

app.listen(3000, function() { console.log("Server started on port 3000"); });

About

API creation and performing GET,PUT,PATCH,UPDATE,DELETE Operations for an Article from API.. Built from Scratch


Languages

Language:JavaScript 100.0%