Backend API for a social media application like twitter
- NodeJS -- Platform
- Express -- Server
- TypeScript -- Language
- PostgreSQL -- DataBase
- TypeORM -- ORM
- Bcrypt -- Hashing
- Jwt -- Autheentication
- Redis -- Cache
- Heroku -- Deployment
$ sudo -i -u postgres
- Enter
psql
as admin .
$ psql
- 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;
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
$ npm run test:e2e
$ npm run test:cov