Setting up an express, typescript and pug web app (With a postgres DB in docker)
Hi!, welcome to a new post, this time I will be showing you how I set up a new personal project using TypeScript, Express, Pug, Postgresql and a bit of docker. Postgres db in docker This part is very simple, is just a docker-compose.yml with a configuration for a postgres container, setting an user, password and db name. The "volumes" are for data persistence, is a folder in your real machine that will store the postgres container data, in this case is just a folder in the root of your project. And create a file called ormconfig.jso n and write this: { "type": "postgres", "host": "localhost", "port": "5432", "username": "test", "password": "development", "database": "testDb", "syncronize": true, "logging": true, "logger": "file", "entities": ["src/orm/models/**/*.ts"], ...