Git Product home page Git Product logo

morganbackend's Introduction

Morgan Stanley CodeToGive Team-17 Backend

This is a resilient backend service built using Node.js, Express.js, MongoDB, and a variety of other powerful technologies including bcrypt for secure password handling. It is designed to handle various tasks efficiently and flexibly, providing a reliable backbone for any web application.

Getting Started

The following instructions will guide you through cloning the project, setting up your development environment, and running the application on your local machine for both development and testing purposes.

Prerequisites

Ensure you have Node.js and npm (Node Package Manager) installed on your system. If you do not, you can install them from here and here, respectively.

Installation

  1. Clone the repository - Pull the code from the master branch of the GitHub repository to your local machine.

  2. Navigate to the project directory - Once you've cloned the repository, use the command line to navigate to the root directory of the project.

  3. Set up environment variables - Create a .env and .env.local file in the root directory. These files will house all your environment variables. Populate them with the following details:

    .env

    DB_URL="mongodb://localhost:27017/morganstanley23"
    MONGODB_ATLAS_URI="mongodb://localhost:27017/morganstanley23"
    PORT=3000
    SECRET_KEY="<your_secret_key>"
    VAPID_SUBJECT="mailto:<your_email>"
    VAPID_PUBLIC_KEY="<your_vapid_public_key>"
    VAPID_PRIVATE_KEY="<your_vapid_private_key>"
    export NODE_ENV=development
    

.env.local

VITE_SERVER_ADDRESS="http://localhost:3000"
VITE_VAPID_PUBLIC_KEY="<your_vapid_public_key>"
export NODE_ENV=development

Replace <your_secret_key>, <your_email>, <your_vapid_public_key>, and <your_vapid_private_key> with your own values.

  1. Install dependencies - Use npm to install all the project's dependencies.
  2. Start the server - Run the server using the npm script 'dev'.
  3. Verify the setup - Open a web browser and visit http://localhost:3000 to confirm the application is running correctly.

API Documentation

For more information on the available API endpoints, please visit the API documentation.

morganbackend's People

Contributors

ujjujjuj avatar frostbite-ai avatar lakshay162003 avatar

Watchers

 avatar

Forkers

frostbite-ai

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.