Skip to content

manthanank/backend-app

Repository files navigation

Backend App

Overview

This is the backend application for a project. It is built using Node.js and Express, along with several dependencies for handling HTTP requests, email sending, and database interactions.

Installation

  1. Clone the repository: git clone https://github.com/manthanank/backend-app.git
  2. Navigate to the project directory: cd backend-app
  3. Install dependencies: npm install

Usage

Development

Run the following command to start the development server with nodemon:

npm run dev

This will automatically restart the server whenever changes are made.

Production

To start the server in production, use:

npm start

Dependencies

  • axios: Promise-based HTTP client for the browser and Node.js
  • body-parser: Node.js body parsing middleware
  • cors: Middleware for enabling Cross-Origin Resource Sharing (CORS)
  • dotenv: Loads environment variables from a .env file
  • express: Web framework for Node.js
  • mongoose: MongoDB object modeling tool designed to work in an asynchronous environment
  • multer: Middleware for handling multipart/form-data, used for file uploads
  • nodemailer: Send emails with Node.js
  • helmet: Secure Express apps by setting various HTTP headers to protect against well-known web vulnerabilities.
  • @notionhq/client: Official Notion API client for Node.js.
  • randomstring: Generate random strings.
  • jsonwebtoken: An implementation of JSON Web Tokens.
  • bcrypt: A library to help you hash passwords.
  • winston: A logger for just about everything.
  • moment: Parse, validate, manipulate, and display dates and times in JavaScript.
  • lodash: A modern JavaScript utility library delivering modularity, performance & extras.

Development Dependencies

  • nodemon: Utility that automatically restarts the server during development

Node and NPM Versions

  • Node.js: 16.15.1
  • NPM: 8.12.1

License

This project is licensed under the MIT License - see the LICENSE file for details.