URL shortener running on Node.js with PostgreSQL as a storage solution. Sequelize is used as ORM tool.
- Pull the repo.
- Execute
npm i
. - Install PostrgeSQL on your machine. Restart the system if needed.
- Rename
.env.example
file to.env
and fill it with valid PostgreSQL credentials. - Run
npm run migrate
to create a table in PostgreSQL. - Start the app by running
npm run start
. - Open
localhost:[PORT from .env file]
and enjoy!