Skip to content

syedfarhanreza/NexGen-Fitness-server

Repository files navigation

Nexgen-Fitness-Server

This project is an Express application built with TypeScript, integrating MongoDB using Mongoose for effective data management. It ensures data integrity through validation using Zod.

Features

  • Express server with TypeScript.
  • MongoDB integration using Mongoose.
  • Modules for Product and Order with appropriate data types and validations.
  • Data integrity validation using Zod.
  • RESTful API endpoints for managing products and orders.

Prerequisites

  • Node.js (v20.12.12 recommended)
  • MongoDB (running instance or MongoDB Atlas)
  • npm
  • Git

Installation

Clone the repository

 git clone  https://github.com/syedfarhanreza/NexGen-Fitness-server.git
 cd nexgen-fitness-server

Install dependencies

Open the project file in the terminal and run npm install

npm install

Set up environment variables

Create a .env file in the root directory and add the following:

NODE_ENV= development
MONGO_URI=your_mongo_db_connection_string
BCRYPT_SALT_ROUNDS= enter any rounds (ex- 8,12)
PORT=5000
STRIPE_SK= your stripe secret key

Start the server

npm run start:dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published