Simple service that auto refreshes Instagram Long-Lived Tokens (refresh is once a week)
$ yarn
# or: npm install
# copy env file
$ cp .env.dev .env
# development
$ yarn start
# or: npm run start
# watch mode
$ yarn start:dev
# or: npm run start:dev
# production mode
$ yarn start:prod
# or: npm run start:prod
Auto scss recompilating
$ yarn scss:watch
# or: npm run scss:watch
# build the app
$ yarn build
# copy env file
$ cp .env.prod .env
# start in production mode
$ yarn start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Create your heroku app in heroku panel apps
In settings section add Config Vars
SESSION_SECRET=secret
DB_NAME=ig-token-refresher
ADMIN_USERNAME=admin
ADMIN_PASSWORD=password
Then push the app do either main
or master
branch with heroku CLI.
heroku login
heroku git:remote -a XXX
XXX you will get from you app panelgit push heroku master
That's it - console should return URL of your app.