const Profile = mongoose.model('Profile', profileSchema);
const handleSubmit = (e) => { e.preventDefault(); // Send data to backend fetch('/api/profile', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ name, bio }), }); }; dorcelclub mariska executive secretary free
app.use(express.json());
mongoose.connect('mongodb://localhost/userDB', { useNewUrlParser: true, useUnifiedTopology: true }); const Profile = mongoose
const profileSchema = new mongoose.Schema({ name: String, bio: String, }); const Profile = mongoose.model('Profile'