Skip to content

reader-coder/bookstore-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Environment Variables Documentation

This document provides details on the essential environment variables used in the project.

1. Database Configuration

Variable Description Example Value
MONGO_URI MongoDB connection URI mongodb://localhost:27017/localdb

Note: Ensure that the correct MongoDB connection string is used based on your setup.


2. Server Configuration

Variable Description Example Value
PORT The port on which the server runs 3000

Tip: Set PORT to a different value if running multiple applications on the same system.


How to Use

  1. Create a .env file in the root directory of your project.
  2. Copy the variables from this documentation and paste them into .env.
  3. Use a package like dotenv to load environment variables into your application.

Example .env file:

MONGO_URI=mongodb://localhost:27017/localdb
PORT=3000

This documentation ensures secure and proper usage of environment variables in the project.

About

Simple book store API using NodeJS and MongoDB

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors