/blog-app

A blog backend generated with NestJS, Fastify and PostgreSQL.

Primary LanguageTypeScript

Blog App

Project Installation Guide

Environment files

Environment file can be found in this gist. This file must be added to root of the project with the file name .dev.env. Without this file, the project cannot be run.

PostgreSQL

Installation

You can follow installation steps from here.

Preparing for project

OS X
$ psql postgres
$ create database blog
$ create user blog_user with encrypted password 'blog_pass'
$ grant all privileges on database blog to blog_user;
Linux
$ sudo -u postgres psql
$ create database blog
$ create user blog_user with encrypted password 'blog_pass'
$ grant all privileges on database blog to blog_user;
Windows
$ psql -U postgres
$ create database blog
$ create user blog_user with encrypted password 'blog_pass'
$ grant all privileges on database blog to blog_user;

Running

To run in development mode:

$ npm run start:dev

To run in production mode:

$ npm run start:prod

Contribution

To commit your changes, first run:

$ git add $FILES

Afterwards:

$ npm run commit

Fill the form, then:

$ git push origin master