Backend service for the Bookmarq application that handles content management, authentication, and sharing.
- Install dependencies:
npm install
- Create a
.env
file in the root directory with the following variables:
LINK_PREVIEW_API_KEY=<your-link-preview-api-key>
DB_URL=<your-mongodb-connection-string>
JWT_SECRET=<your-jwt-secret>
- Start development server:
npm run dev
The server will start on the port specified in your environment variables.
npm run dev
- Start development server with hot reload using nodemonnpm run build
- Build TypeScript filesnpm start
- Start production servernpm run format
- Format code using Prettier
POST /api/v1/signin
- Sign in userPOST /api/v1/signup
- Create new userPOST /api/v1/logout
- Log out user
POST /api/v1/content
- Add new contentGET /api/v1/content
- Get user's contentDELETE /api/v1/delete
- Delete content
POST /api/v1/brain/share
- Generate share linkGET /api/v1/brain/share
- Get shared content
- JWT-based authentication
- Content management with MongoDB
- Link preview integration
- Content sharing functionality
- CORS configuration for frontend integration
- Node.js + Express
- TypeScript
- MongoDB + Mongoose
- JWT for authentication
- bcrypt for password hashing