Get BrainRoute Database running in 5 minutes!
- Node.js installed
- Neon PostgreSQL account (sign up free)
npm install# Copy template
cp .env.example .env
# Edit .env with your Neon connection string:
DATABASE_URL='postgresql://user:pass@host/db?sslmode=require&channel_binding=require'Go to Neon SQL Editor and run:
-- Copy and paste from server/schema.sql
CREATE TABLE IF NOT EXISTS name_of_the_table ( ... );npm run devVisit: http://localhost:3000 🎉
Use Neon SQL Editor:
INSERT INTO molecules (id, name, smiles, formula, weight, prediction, confidence, uncertainty, mw, logp, hbd, hba, tpsa, rotatable_bonds, heavy_atoms, melting_point, boiling_point, solubility, polar_surface_area)
VALUES ('CC(=O)OC1=CC=CC=C1C(=O)O', 'Aspirin', 0, 87.5, 12.3, 180.158, 1.19, 1, 4, 63.6, 3, 13, 'C9H8O4');curl http://localhost:5000/api/health
# Expected: {"status":"ok","message":"BrainRoute-DB API is running"}
curl http://localhost:5000/api/molecules
# Expected: {"success":true,"data":[...]}- Open http://localhost:3000
- Search for a molecule
- Click to view details
- Check browser console for any errors
- Check
DATABASE_URLformat in.env - Verify Neon database is active
- Ensure SSL parameters are included
- Database is empty - add data using migration or manual insert
- Check backend console for fetch errors
- Frontend and backend URLs must match
.envconfiguration - Restart both servers after changing
.env
- SETUP.md - Detailed setup and API docs
- README.md - Project overview
Your secure, scalable molecular database is ready to use.
What's Next?
- Add your molecule data
- Customize the frontend
- Deploy to production
- Add authentication (optional)
- Set up automated backups
Happy researching! 🧪🧬