backend / README.md
Scorpiotur's picture
Create a simple Express.js backend API with these endpoints: POST /api/auth/register - Register new user POST /api/auth/login - Login user (return JWT token) GET /api/user/profile - Get user profile (protected route) Basic structure: - server.js (main file) - /routes/auth.js - /middleware/auth.js (JWT verification) - /models/User.js (mongoose schema) Use: - Express.js - MongoDB - JWT for auth - bcrypt for passwords Start with just authentication. Keep it simple. - Initial Deployment
6288f67 verified
metadata
title: backend
emoji: 🐳
colorFrom: gray
colorTo: pink
sdk: static
pinned: false
tags:
  - deepsite

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference