Git Product home page Git Product logo

ghalmas-betest's Introduction

Backend API

Stack

This backend API is built using a robust stack to ensure efficiency, scalability, and ease of development. Here's a breakdown of the stack components:

  • Framework: Express - A minimal and flexible Node.js web application framework that provides a robust set of features for web and mobile applications.
  • Database:
    • Primary: MongoDB - A NoSQL database known for its high performance, high availability, and easy scalability.
    • Sessions: Redis - An in-memory data structure store used as a database, cache, and message broker, ideal for managing sessions.
  • ODM: Mongoose - An elegant MongoDB object modeling for Node.js, providing a schema-based solution to model data.
  • Validation: Zod - A TypeScript-first schema declaration and validation library that ensures your data is always in the expected format.
  • Logging: Morgan - HTTP request logger middleware for Node.js, useful for tracking requests and debugging.
  • Runtime: NodeJS - A JavaScript runtime built on Chrome's V8 JavaScript engine, enabling server-side scripting and development.

Tooling

To facilitate development, the following tools are used:

  • Builder: ESBuild - An extremely fast JavaScript and TypeScript bundler.
  • Formatting: Prettier - An opinionated code formatter that enforces a consistent style by parsing your code and re-printing it.
  • Type-Checking: TSC - TypeScript Compiler, used to ensure type safety and catch errors early in the development process.
  • Package Manager: pnpm - A fast, disk space-efficient package manager that saves every installed package in a global store.

Installing Dependencies

To install the required dependencies for this project, use the following command:

pnpm install

This command will install all the necessary packages as specified in the package.json file.

Starting the Server

To start the server, use the following command:

pnpm start # or pnpm start:prod for start the production server

Building the Server

To build the server, you can use the following command:

pnpm build

For a minified output suitable for production environments, use:

pnpm build:prod

ghalmas-betest's People

Contributors

ghalmasshandityaaa 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.