Skip to content
This repository has been archived by the owner on Aug 26, 2022. It is now read-only.
/ SagasuCore Public archive

Core repository for project sagasu, which provides services that are the most important.

Notifications You must be signed in to change notification settings

TheSagasuLegacy/SagasuCore

Repository files navigation

SagasuCore

Core repository for project Sagasu, which provides services that are the most important.

Description

  • This repository provides core feature of anime dialog search, including:
    • user authentication and authorization
    • communication with ElasticSearch backend
    • dialogs, episodes and series record management

Due to the key feature it takes place, so we DOES NOT have any plan to open source it recently, regardless we stop maintain this project.

Built by Nest framework TypeScript starter repository.

Installation

  • To install this project, these environments are required:

    • NodeJS >= current LTS of v12 (with yarn installed)
    • PostgresSQL
    • ElasticSearch >= 7.12.0
    • Redis Which is not been used yet, but will be required at any time.
  • Or you can just docker-compose up this project with docker-compose.yml

  • Install dependencies

yarn install
  • Configure .env file (or environment variable)
    • Create a .env file at project root, there are content for reference
DATABASE_URL=postgresql://postgres:password@localhost:5432/postgres 
ES_NODE=http://localhost:9200
REDIS_URL=redis://localhost:6379
JWT_SECRET=FuckYouMother # DOES NOT public it at any condition
NEW_RELIC_LICENSE_KEY= # New Relic APM license key
  • Run database migration
yarn run typeorm:run

Running the app

# development
yarn run start

# watch mode
yarn run start:dev

# production mode
yarn run start:prod

Test

We are hiring member who could complete test cases for us!

# unit tests
yarn run test

# e2e tests
yarn run test:e2e

# test coverage
yarn run test:cov

Credits

  • This project is based on Nest, which is an MIT-licensed open source project.

  • Search feature is powered by ElasticSearch, thanks to its awesome search performance

  • Current maintainer is @mnixry, who contributed too much work on it

About

Core repository for project sagasu, which provides services that are the most important.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published