Core repository for project Sagasu, which provides services that are the most important.
- 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.
-
To install this project, these environments are required:
NodeJS
>= current LTS of v12 (withyarn
installed)PostgresSQL
ElasticSearch
>= 7.12.0Redis
Which is not been used yet, but will be required at any time.
-
Or you can just
docker-compose up
this project withdocker-compose.yml
-
Install dependencies
yarn install
- Configure
.env
file (or environment variable)- Create a
.env
file at project root, there are content for reference
- Create a
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
# development
yarn run start
# watch mode
yarn run start:dev
# production mode
yarn run start:prod
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
-
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