Skip to content

adam-dev2/second-brain

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Second Brain

A bookmarks / knowledge-management web app with a React + Vite frontend and an Express + TypeScript backend. Features include semantic Elastic search, card tagging, shareable public brains, SSE processing updates, and GitHub/Google auth.

Repository structure

Quick start (development)

Prerequisites:

  • Node.js 18+
  • pnpm / npm / yarn

Clone and install:

# from repo root
cd client
npm install

cd ../server
npm install

Environment:

  • Frontend expects VITE_BACKEND_URL in client/.env.
  • Backend expects typical server env in server/.env (JWT_SECRET, DB_URL, QDRANT, OAuth keys, etc).

Run locally:

# start backend
cd server
npm run dev

# in a separate terminal, start frontend
cd client
npm run dev

The frontend uses client/src/context/AuthContext.tsx to call authentication endpoints. The backend exposes a verification endpoint implemented by verifyUserController (see server/src/controllers/verifyUserController.ts).

Important pages & components

API overview (server)

Key controllers and routes:

Use the route files above to inspect exact endpoints.

Deployment

  • Frontend is a Vite app — build with npm run build in client.
  • Backend is an Express TypeScript app — compile / run via npm run build and npm run dev in server. Ensure environment variables are set (JWT_SECRET, DB connection, Qdrant/Elastic configs).
  • Example frontend production base URL is configured using VITE_BACKEND_URL (client/.env).

Notes & pointers

About

This Project is Complete Of Course there is chance of upgrade

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages