GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - TECHOUS/coderatingengine: This repository contains the server for the codemash

BranchesTags
Open more actions menu

Latest commit

 

History

46 Commits
46 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
api
api
 
 
bin
bin
 
 
models
models
 
 
routes/api/v1
routes/api/v1
 
 
src
src
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.prettierignore
.prettierignore
 
 
.prettierrc.json
.prettierrc.json
 
 
.vercelignore
.vercelignore
 
 
README.md
README.md
 
 
apidoc.json
apidoc.json
 
 
package.json
package.json
 
 
vercel.json
vercel.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

⚙️ Code Rating Engine

Backend Engine that is used in codemash project for rating the open-source code

GitHub Release Date Vercel Deployment GitHub package.json dynamic GitHub repo size

Features

  • Developed the rating mechanism using ELO Rating Algorithm
  • Implemented in memory caching (30 seconds)
  • Secured the update and the searching routes with token mechanism (Token expiry maintained as 5 minutes)
  • Implemented rate limiting (10 requests per minute)

System Architecture

As system architecture contains sensitive information so please email us here

Getting Started

Prerequisites

  • node js v20
  • yarn v1
  • vercel CLI (only required for deployments)
  • MongoDB in local desktop or in MongoDB Atlas

Installation

  • Clone the repository using the below command
git clone [email protected]:TECHOUS/coderatingengine.git
  • Run the below command in the project folder and install all the dependencies
yarn run build
  • Create .env file in the project folder and add the properties mentioned in the Environment Variables section
  • After all this setup we are good to run the APIs from local
  • Follow the Scripts section for the scripts you can run in your local

Environment Variables

MONGODB_URI

Add the mongo db URI from the local desktop or from Mongo DB Atlas account, for example

mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]

RATE_LIMIT_MINUTES

  • how long to remember requests for, in minutes
  • configure a number as 1 or greater than 1

RATE_LIMIT_MAX_REQUEST

  • how many requests to allow
  • configure a number greater than 1 per your choice

CACHE_STORAGE_SECONDS

  • For how long you can have to return the data from in memory cache
  • This property is applicable for randomCodes and searchUser API

Scripts

yarn run build

Build and install the required nodejs dependencies and devDependencies from package.json for running this project

yarn run test

You can run the tests with this script and verify if the APIs are working fine or not

yarn run start

  • Start the nodejs server in production mode
  • Server will be stopped if any issues came up

yarn run dev

  • Start the nodejs server in development mode
  • Server will be restarted if any issues came up

API Documentation

For API Endpoints and Documentation follow this link

Documentation Screenshot

Related Projects

codemash

About

This repository contains the server for the codemash

coderatingengine.vercel.app/

Topics

coderatingenginevercel

Resources

Readme
Activity
Custom properties

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.