An open API service indexing awesome lists of open source software.

https://github.com/sakib-333/matrimony-platform-server

This is the server of Matrimony Platform Client side. A server that provides all necessary API response.
https://github.com/sakib-333/matrimony-platform-server

cookie cors dotenv expressjs jwt mongodb stripe

Last synced: 3 months ago
JSON representation

This is the server of Matrimony Platform Client side. A server that provides all necessary API response.

Awesome Lists containing this project

README

          

# Matrimony Portal Server

This is a Node.js Express server that integrates several npm packages such as Express, MongoDB, Cookie-Parser, CORS, dotenv, JWT (JSON Web Token) Authentication, and Stripe for handling payment processing.

## Features

- **Express.js**: Web framework for building the server
- **MongoDB**: Database for storing user data and other information
- **JWT Authentication**: Secure user authentication with JSON Web Tokens
- **Stripe**: Payment gateway integration for handling payments
- **Cookie-Parser**: Parsing cookies in requests
- **CORS**: Enabling cross-origin requests for the server
- **dotenv**: Environment variable management

## Prerequisites

Make sure you have the following installed on your local machine:

- [Node.js](https://nodejs.org/)
- A **MongoDB** instance (either local or cloud-based like MongoDB Atlas)
- A **Stripe account** for payment processing

## Installation

1. Clone the repository to your local machine:

```bash
git clone git@github.com:sakib-333/ph-b10-a12-server.git

cd ph-b10-a12-server
```

2. Install dependencies

```bash
npm install
```

3. Create a `.env` file root of the folder and all of your secret keys.

```bash
DB_USERNAME=

DB_PASSWORD=

JWT_SECRET=

STRIPE_SECRET_KEY=
```

4. Start server

```bash
node index.js
```

5. Your server should now be running on `http://localhost:3000`.