Installation Guide
Setup Instructions
Follow these steps to set up the project locally:
- Clone Repository:
git clone https://github.com/doneisbetter/session-spa.git
- Navigate to Directory:
cd session-spa
- Install Dependencies:
npm install
- 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
- 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