PostgreSQL and NodeJS
Check out the blog post >> http://mherman.org/blog/2015/02/12/postgresql-and-nodejs
This is a basic single page application built with Node, Express, Angular, and PostgreSQL.
- Clone the repo
- Install dependencies:
- Start your Postgres server and create a database called "todo"
- Create the database tables:
- Start the server:
$ npm start
This comes with a load test using Apache Bench that by default exercises the API endpoint for the
Using this load test it is possible to verify several things:
- that the database is using as many connections as expected (it polls PostgreSQL for the number of active connections while it runs)
- the performance of the combined system under different loads
See the comments in the script for more information.