Simple Node with Express + PostgreSQL Server

An easy way to get started with a Express server with PostgreSQL with Node.js. Read more about it.
- Express
- REST API
- PostgreSQL
git clone git@github.com:rwieruch/node-express-postgresql-server.git
cd node-express-postgresql-server
npm install
docker-compose up
npm start
- optional: include .env in your .gitignore
- Create a message with:
curl -X POST -H "Content-Type:application/json" http://localhost:3000/messages -d '{"text":"Hi again, World"}'
- Delete a message with:
curl -X DELETE -H "Content-Type:application/json" http://localhost:3000/messages/1
- Install Postman to interact with REST API
- Create a message with:
- Delete a message with: