kironimmanuel / rest-apis

Variety of RESTful APIs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RESTful APIs

A variety of APIs written with Node.js, Express.js & mongoDB

General security packages setup
#app.js
import cors from 'cors'
import rateLimit from 'express-rate-limit'
import helmet from 'helmet'
import xss from 'xss-clean' // cross site scripting

# If rate-limit is set up in app.js, it will apply to all routes
app.set('trust proxy', 1)
app.use(
  rateLimit({
    windowsMs: 15 * 60 * 1000, // 15 min.
    max: 100, // 100 calls per windowMs and IP
  })
)

app.use(helmet())
app.use(cors())
app.use(xss())

About

Variety of RESTful APIs


Languages

Language:JavaScript 52.5%Language:HTML 47.5%Language:Procfile 0.0%