This guide explains how to set up and run Readr in two modes:
- Current Vanilla Version (v1.0) — lightweight, browser-only.
- Future MERN Version (v2.x) — React frontend with Node/Express and MongoDB backend.
- A modern browser (Chrome, Firefox, Edge, Safari)
- Optional:
readinglog-seed.jsonfor demo data
- Clone the repository:
git clone https://github.com/USERNAME/reading-log-app.git cd reading-log-app - Open
index.htmlin your browser. No build tools, no server — just open and use.
- Add book → Log a new book.
- Import → Load a
.jsonfile into your reading log. - Export → Sace your current reading log as a
.jsonfile. - Data is stored in your browser's
localstorage.
When the project evolves into a full-stack app, setup will include separate client and server steps
- Node.js (LTS version recommended)
- npm or yarn
- MongoDB Atlas account (free tier)
Before running the MERN stack, configure your enviornment:
- Copy the example enviornment file:
cp .env.example .env- Open
.envand replace placeholder values:
MONGODB_URI→ your MongoDB Atlas connection string.JWT_SECRET→ a long, random secret string.CLIENT_URL→ your frontend dev URL (default:http://localhost:5173).PORT→ port for the Express server (default:4000).⚠️ Important: Never commit your.envfile. Keep it private.
Frontend (React)
- Navigate to the React app folder:
cd app
npm install
npm run dev- Open the development server (default:
http://localhost:5173).
Backend (Express + MongoDB)
- Navigate to the server folder:
cd server
npm install
npm run dev- The API will run at
http://localhost:4000/api/books.