Rafał Pawłow 4b58822ff3 Add most followed channels queries (#17) | 3 лет назад | |
---|---|---|
.github | 3 лет назад | |
src | 3 лет назад | |
tests | 3 лет назад | |
.dockerignore | 4 лет назад | |
.eslintrc.js | 3 лет назад | |
.gitignore | 3 лет назад | |
.huskyrc | 4 лет назад | |
.prettierrc.js | 4 лет назад | |
Dockerfile | 4 лет назад | |
README.md | 4 лет назад | |
docker-compose.yml | 3 лет назад | |
jest-mongodb-config.js | 3 лет назад | |
jest.config.js | 3 лет назад | |
package.json | 3 лет назад | |
schema.graphql | 3 лет назад | |
tsconfig.build.json | 3 лет назад | |
tsconfig.json | 3 лет назад | |
yarn.lock | 3 лет назад |
Orion is (currently) a view count service for Atlas. Its purpose is to count and provide number of view counts for every video in the content directory. At the moment it follows the most simplistic approach - it doesn't do any kind of verification so anyone can add a view count to a video.
yarn install
yarn run dev
Orion requires a MongoDB instance to work properly. The following env variables are used to point Orion to the correct instance:
ORION_MONGO_HOSTNAME
ORION_MONGO_PORT
ORION_MONGO_DATABASE
For ease of deployment the app was dockerized. There's also the docker-compose.yml
which will be the easiest to deploy as it contains the Orion and MongoDB and also sets all the required parameters.