Backend server for the DevMeUp application, providing API endpoints for user history and data management.
- Install dependencies:
npm install
- Create a .env file with the following variables:
DATABASE_URL=your_neon_db_url
PORT=4000
- Run the server:
npm start
GET /api/history/:userId
- Get user's historyPOST /api/history
- Create new history entry
GET /api/ping
- Check server and database health
The application uses Neon PostgreSQL for data storage.
DATABASE_URL
: Neon PostgreSQL connection stringPORT
: Server port (default: 4000)
npm start
: Start the servernpm run migrate
: Run database migrations