Installation Guide

Setup Instructions

Follow these steps to set up the project locally:

  1. Clone Repository:git clone https://github.com/doneisbetter/session-spa.git
  2. Navigate to Directory:cd session-spa
  3. Install Dependencies:npm install
  4. Set Environment Variables:

    Create a .env.local file in the root directory and configure:

    MONGODB_URI=your_mongodb_connection_string
    SESSION_SECRET=your_secure_random_secret
    ALLOWED_ORIGINS=http://localhost:3000
    PORT=3000
    
  5. Run Development Server:npm run dev

System Requirements

Ensure you have the following prerequisites:

  • Node.js v20.x
  • npm v7.x or yarn v1.x
  • Access to the internet for fetching dependencies