Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 1.27 KB

README.md

File metadata and controls

69 lines (47 loc) · 1.27 KB

🐬Hue🐬

Backend API for a social media application like twitter

Github actions status

Technologies used :

  • NodeJS -- Platform
  • Express -- Server
  • TypeScript -- Language
  • PostgreSQL -- DataBase
  • TypeORM -- ORM
  • Bcrypt -- Hashing
  • Jwt -- Autheentication
  • Redis -- Cache
  • Heroku -- Deployment

Database setup

$ sudo -i -u postgres

  1. Enter psql as admin .

$ psql

  1. Create database user and grant all privileges
 $create database twitter;

 $create user twitter with encrypted password 'twitter';

 `swith to the newly created db and grant all privileges to the user`

 $grant all privileges on database twitter to twitter;

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

e2e tests

$ npm run test:e2e

test coverage

$ npm run test:cov