Skip to content

Simple chat server implemented with Apollo Server, TypeORM and PostgreSQL

Notifications You must be signed in to change notification settings

goto-eof/ts-chat-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TS Chat Server

Simple chat server implemented with TypeScript, Apollo Server (GraphQL), TypeORM, PostgreSQL, NodeJS, ExpressJS, Socket.io.

Install libraries

yarn install

Start migration

npx typeorm-ts-node-commonjs migration:run -d src/config/DataSource.ts

Start application

yarn start

GraphQL endpoint: https://localhost:4000/grapql.

Test it by importing the postman_collection.json into Postman.

Some commands

yarn init
yarn add @types/node typescript
yarn add -D ts-node
yarn tsc --init --rootDir src --outDir ./bin --esModuleInterop --lib ES2019 --module commonjs --noImplicitAny true
yarn add typeorm -g
typeorm init --name apollo-server-boilerplate --database postgres
yarn add express graphql apollo-server-express
yarn add -D @types/express @types/graphql


typeorm migration:create /myPath/myMigrationName
npx typeorm-ts-node-commonjs migration:run -d src/config/DataSource.ts


tsc init

About

Simple chat server implemented with Apollo Server, TypeORM and PostgreSQL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published