Git Product home page Git Product logo

buidlso's Introduction

Tech-Stack

Tech stack used in this codebase is

  • Typescript
  • Javascript
  • MongoDB
  • Mongoose
  • Fastify
  • Vitest (only for testing)
  • pnpm

Folder Structure

src - Source code for the entire Service db - Utility functions/files related to database, might contain some migration files in future functions - Utility function that are being used in the routes/logic models - Mongoose Models created to communicate with MongoDB routes - Fastify Plugin based routes & logic tests - Code related to tests

Environment variables

Environment variables are being used in this codebase to provide the config for functionality of application.

JWT_SECRET - String to encrypt the user's authentication token PORT - Port to start the server on HOST - Host to run the server SALT_ROUNDS - Number of encryption rounds to encrypt password DB_CONNECTION_STRING - MongoDB URI to connect and do database functionalities USER_SERVICE - User Service URL to communicate with user-service (Optional, used only for testing)

Running Server

To run the server on local machine run the following command

pnpm dev

Running tests

To run the tests on your local machine run the following command

pnpm test

After running the tests vitest creates a report of the test suite. To View the report run the following command

pnpm coverage

buidlso's People

Contributors

b4s36t4 avatar

Watchers

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