Skip to content

tejassrivastava/qode-be

Repository files navigation

Qode API

This contains all the API implementation

About the project implementation

Tech Stack

  • Backend Framework: Express.js
  • Database: Mongodb
  • Upload Library: Multer
  • Test: Jest & Supertest

Run Locally

Clone the project

 git clone <Repo URL>

Go to the project directory

  cd qode-be

Install dependencies

  npm install

Start the server:

this command will automatically start both the frontend as well as express server.

  npm run dev

API server

http://localhost:3000/

API Reference

Upload Images

  POST /upload

Uploads the image & returns the upload object

{
  filename: '1694268576749.png',
  url: 'http://localhost:3000/1694268576749.png',
  comment: 'MyImage',
  _id: new ObjectId("64fc7ca0fb1d02fcbad4710c"),
  __v: 0
}
  GET /getPhoto

Returns All Photos

{
  filename: '1694271453827.jpg',
  url: 'http://localhost:3000/1694271453827.jpg',
  comment: 'asd',
  date: 2023-09-09T14:57:33.833Z,
  _id: new ObjectId("64fc87dd22b0eaf40836fd35"),
  __v: 0
}

To run tests

npm run test

Current Test Case Result:

Current Test Coverage Result:

Authors

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published