Skip to content

Latest commit

 

History

History
103 lines (86 loc) · 3.02 KB

README.md

File metadata and controls

103 lines (86 loc) · 3.02 KB

NodeJS NestJS Typeorm Postgres JWT TypeScript Socket.io Jest Angular Ionic cypress NPM Postman Git WebStorm


Description 📄

This project is an attempt to replicate the limited functionality of the application "Linkedin". Implemented design for mobile devices.

This project implements such functions as jwt authorization, roles, registration of new users, adding friends, adding posts, sending messages to friends in private chats.


Installation on the Client and the Server

$ npm install
or
$ yarn install

Setup environment on the Server🔧

# development mode
1. Create inside server dir file .env
2. Copy content from .env.dist to .env
3. correct inside the .env file the data to the required

Run migrations on the Server

# generate migrations
$ npm run migration:generate -- db/migrations/migration_name

# run migrations
$ npm run migration:run

Run the app on the Server🚀

# development mode
$ npm run start:dev
or
$ yarn start:dev

Tests on the Server🐛

# unit tests
$ npm run test
$ yarn test

# e2e tests
$ npm run test:e2e
$ yarn test:e2e

# test coverage
$ npm run test:cov
$ yarn test:cov

Running the app on the Client🚀

# development mode
$ ionic serve

Tests on the Client 🐛

# unit tests
$ ng test
or
$ ng test auth.page.spec.ts

# e2e tests
$ npm run cypress:open
$ npm run cypress:run

$ yarn test:cypress:open
$ yarn test:cypress:run

# test coverage
$ ng test --no-watch --code-coverage