Giter Club home page Giter Club logo

speer-backend's Introduction

Speer Technologies - Backend Assessment

Technical Requirements

  1. Implement a RESTful API using a framework of your choice (e.g. Express, DRF, Spring).
  2. Use a database of your choice to store the data (preferably MongoDB or PostgreSQL).
  3. Use any authentication protocol and implement a simple rate limiting and request throttling to handle high traffic.
  4. Implement search functionality to enable users to search for notes based on keywords. ( preferably text indexing for high performance )
  5. Write unit tests and integration tests your API endpoints using a testing framework of your choice.

Approach and Preferences

Framework - Express

Express JS exhibits a higher request-per-second throughput compared to other frameworks. The asynchronous and event-driven nature of Express JS, combined with its lightweight design, allows it to handle a larger number of concurrent requests efficiently

Database - MongoDB

While PostgreSQL offer robust, reliable, ACID-compliant relational data storage solutions, NoSQL databases like MongoDB provide flexible, horizontally scalable alternatives.

Authentication - JWT, bcrypt for hashing passwords

Tests - Jest, Supertest

Jest is likely the better choice if you want a testing framework that we can use on its own, without having to configure integrations.

How to run and test

  1. Clone the Repo.
  2. Run npm install command to install the dependencies.
  3. To install nodemon, run npm i nodemon.
  4. Go to .env File and replace the MONGODB_URL.
  5. To run the application, use npm start command.
  6. To run the tests, use npm test command.

Note: Make Sure to use the routes properly.

speer-backend's People

Contributors

p1kalys avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.