https://github.com/goto-eof/ts-chat-server
Simple chat server implemented with Apollo Server, TypeORM and PostgreSQL
https://github.com/goto-eof/ts-chat-server
Last synced: 3 months ago
JSON representation
Simple chat server implemented with Apollo Server, TypeORM and PostgreSQL
- Host: GitHub
- URL: https://github.com/goto-eof/ts-chat-server
- Owner: goto-eof
- Created: 2023-11-10T12:30:43.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-12T20:52:07.000Z (over 1 year ago)
- Last Synced: 2024-12-30T03:43:51.930Z (5 months ago)
- Language: TypeScript
- Homepage:
- Size: 181 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TS Chat Server
Simple chat server implemented with TypeScript, Apollo Server (GraphQL), TypeORM, PostgreSQL, NodeJS, ExpressJS,
Socket.io.Install libraries
```text
yarn install
```Start migration
```text
npx typeorm-ts-node-commonjs migration:run -d src/config/DataSource.ts
```Start application
```text
yarn start
```GraphQL endpoint: `http://localhost:4000/grapql`.
Test it by importing the `postman_collection.json` into Postman.
Some commands
```text
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/graphqltypeorm migration:create /myPath/myMigrationName
npx typeorm-ts-node-commonjs migration:run -d src/config/DataSource.tstsc init
```