Skip to content

Bookstream features a clean and responsive interface, advanced search functionality, and secure payment processing. Perfect for developers looking to create or contribute to a dynamic, feature-rich bookstore application.

License

Notifications You must be signed in to change notification settings

HYnam/BookStream

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BookStream Setup Guide

This guide will walk you through setting up the backend server for the BookStream application. The backend features a clean and responsive interface, advanced search functionality, and secure payment processing.

Step 1: Environment Variables Setup

  1. In the backend folder of your project, create a new file named .env

  2. Inside the .env file, add the following environment variables:

    PORT=3000
    MONGO_URI=<your_mongodb_uri> #pass a mongodb url
    JWT_SECRET=<your_jwt_secret> #secret1

    Replace <your_mongodb_uri> with your MongoDB connection string and <your_jwt_secret> with a secure JWT secret key.

Step 2: Start the Server

To start the backend server, follow these steps:

  1. Open a terminal and navigate to the backend folder of the project:

    cd backend
  2. Establish the database connection by running:

    node conn.js
  3. Once the connection is successful, start the server with the following command:

    node index.js

This will start the server on the port specified in your .env file (default is 3000).


With these steps, the backend server for BookStream will be up and running! You can now test the application's functionality or continue development.

About

Bookstream features a clean and responsive interface, advanced search functionality, and secure payment processing. Perfect for developers looking to create or contribute to a dynamic, feature-rich bookstore application.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.3%
  • TypeScript 3.8%
  • HTML 2.9%