Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/softmarshmallow/inked-server

☁️ prisma server for inked project
https://github.com/softmarshmallow/inked-server

elasticsearch express mongodb neo4j nlp prisma prisma-client typescript

Last synced: 17 days ago
JSON representation

☁️ prisma server for inked project

Awesome Lists containing this project

README

        

# inked server

> a RealWorld, fully functioning service server built on **prisma / typescript / express

run docker compose

`docker-compose up -d`
> if productioon `sudo docker-compose -f docker-compose-production.yml up -d`

## provide credential files
> at `/credentials`, you need `firebase-adminsdk.json` of your own.

install prisma cli
`yarn install -g prisma`

prisma generate
`prisma generate`

prisma deploy
`prisma deploy`

run server
`yarn run dev`

deploy server production
`pm2 start ecosystem.config.js`

### seed
`ts-note src/seed/index/ts`

## create mongo db index manually
- News.time -> must create index for better performance

### environments

- Prisma
- mongodb
- express
- graphql

### siblings

- [inked-news-crawler](https://github.com/softmarshmallow/inked-news-crawler)
- [inked-engine](https://github.com/softmarshmallow/inked-engine)
- [inked-flutter](https://github.com/softmarshmallow/inked-flutter)

### realtime communication

socket io related

namespaces
- crawler
- engine
- client

events by namespaces
- crawler
- on crawled
- engine
- on crawled receive
- on analysis complete
- client
- on new data
- on data update