All Projects → avatsaev → angular-contacts-app-example-api

avatsaev / angular-contacts-app-example-api

Licence: other
Backend API server for Angular Contacts App

Programming Languages

typescript
32286 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to angular-contacts-app-example-api

eslint-config-galex
hopefully the last eslint config you'll ever need - customizable & modern best practices for JS, TS, Node, React, Remix, Next, Jest, testing-library & storybook
Stars: ✭ 166 (+191.23%)
Mutual labels:  nestjs
nest-js-products-api
Hexagonal architecture using nestjs
Stars: ✭ 63 (+10.53%)
Mutual labels:  nestjs
nestjs-rpc
NestJS Json RPC package
Stars: ✭ 47 (-17.54%)
Mutual labels:  nestjs
nest-convoy
[WIP] An opinionated framework for building distributed domain driven systems using microservices architecture
Stars: ✭ 20 (-64.91%)
Mutual labels:  nestjs
React-Nest-Admin
admin project powered by 🚀 React + Nestjs + Antd 全栈中后台,后端项目:https://github.com/cnscorpions/React-Nest-Admin-be
Stars: ✭ 37 (-35.09%)
Mutual labels:  nestjs
prime-nestjs
A production-ready NestJS boilerplate using Typescript, Postgres, TypeORM, and Docker.
Stars: ✭ 140 (+145.61%)
Mutual labels:  nestjs
nest-queue
The queue package for your NestJS Applications
Stars: ✭ 35 (-38.6%)
Mutual labels:  nestjs
nest-typescript-starter
Nest framework TypeScript starter (node.js)
Stars: ✭ 35 (-38.6%)
Mutual labels:  nestjs
nestjs-telegraf
🤖 Powerful Nest module for easy and fast creation Telegram bots
Stars: ✭ 300 (+426.32%)
Mutual labels:  nestjs
nestjs-boilerplate-microservice
Nestjs Microservice boilerplate: apply DDD, CQRS, and Event Sourcing within an event driven architecture
Stars: ✭ 270 (+373.68%)
Mutual labels:  nestjs
nestjs-objection
Objection module for NestJS
Stars: ✭ 24 (-57.89%)
Mutual labels:  nestjs
monorepify
A boilerplate for monorepo architecture using frameworks.
Stars: ✭ 37 (-35.09%)
Mutual labels:  nestjs
buscador-ao
Ponto de obtenção de informações públicas de Angola
Stars: ✭ 21 (-63.16%)
Mutual labels:  nestjs
uni-pushy-server
upushy 热更新后端。https://upushy.yoouu.cn/
Stars: ✭ 30 (-47.37%)
Mutual labels:  nestjs
nestjs-asyncapi
NestJS AsyncAPI module - generate the documentation of your event-based services using decorators
Stars: ✭ 88 (+54.39%)
Mutual labels:  nestjs
finance-project-ddd
Projeto financeiro usando domain driven design, tdd, arquitetura hexagonal e solid
Stars: ✭ 67 (+17.54%)
Mutual labels:  nestjs
nestjs-pdf
Nest js pdf generator
Stars: ✭ 55 (-3.51%)
Mutual labels:  nestjs
sf-nest-admin
🚀 基于NestJs + TypeScript + TypeORM + Redis + MySql + Vue2 + Element-UI编写的一款简单高效的前后端分离的权限管理系统
Stars: ✭ 125 (+119.3%)
Mutual labels:  nestjs
microservice-template
📖 Nest.js based microservice repository template
Stars: ✭ 131 (+129.82%)
Mutual labels:  nestjs
nestjs-zero-to-hero
Coding through the course: NestJS Zero to Hero - Modern TypeScript Backend Development
Stars: ✭ 23 (-59.65%)
Mutual labels:  nestjs

Nest Logo

NestJS Contacts API

This project uses @nestjsx/crud to simplify and standardize the REST API

This backend is based on NestJS Framework V6 (https://nestjs.com/)

  • DB: Postgres
  • Websockets: Socket.io
  • Synchronises sockets thourgh Redis adapter for horizontal scaling

Frontend is available here: https://github.com/avatsaev/angular-contacts-app-example

Env VARS:

  SERVER_PORT: 3000
  POSTGRES_HOST: db
  POSTGRES_PORT: 5432
  POSTGRES_USER: contacts_db
  POSTGRES_PASSWORD: contacts_db_pass
  POSTGRES_DB: contacts_db
  REDIS_HOST: redis
  REDIS_PORT: 6379
  REDIS_ENABLED: 'true'

Run

docker-compose up --build

Server will be running on http://localhost:3000

Endpoints

  • GET /contacts : returns an array of Contacts
  • GET /contacts/:id: returns a Contact shape
  • POST /contacts: Create a contact, returns a Contact shape
  • PATCH /contacts/:id: Partially update a Contact, returns a Contact shape
  • DELETE /contacts/:id: Delete a Contact, empty response

Contact shape:

interface Contact {
    id?: number | string;
    name: string;
    email: string;
    phone?: string;
}

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].