- /server - backend
- /app - react app
- /shared - shared source
- /watcher - trimmer & uploader service
Already a JavaScript developer? Pick an issue, push a PR.
Prerequisites:
- git
- docker / docker-compose
- NodeJS >= 8
- youtube step 1
- clone repo
git clone https://github.com/piterjs/video-trimmer.git
- install dependencies
make dep && make templates
- Edit envs
vim server/.env
- Copy youtube secrets
mv youtube_client_secret.json server/secrets/client_id.json
mv youtube_client_secret.json watcher/secrets/client_id.json
- start backend
cd server && docker-compose up -d && npm run dev
- start app
cd app && npm start
- start watcher
cd watcher && npm run dev
PORT
- server portMONGO_URL
- mongodb connection stringAUTHORIZATION_URL
- JetBrains HUB oauth2 urlTOKEN_URL
- JetBrains HUB token urlCLIENT_ID
- JetBrains HUB client idCLIENT_SECRET
- JetBrains HUB secretCALLBACK_URL
- Oauth callback urlOAUTHBASE_URL
- hub urlINFLUX_HOST
- influxdb hostINFLUX_PORT
- influxdb portINFLUX_DB
- influxdb dbnameKUBE_SERVER
- Kubernetes server urlKUBE_NAMESPACE
- Kubernetes namespaceKUBE_CA
- Kubernetes certificateKUBE_TOKEN
- Kubernetes token
- mongodb - mongodb://localhost:27017
- mongodb ui - http://localhost:8081
- influxdb - http://localhost:8086
- infludb ui - http://localhost:8083