Skip to content

Shakthi011001/Own-RESTful-Wiki-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published