A Nest framework TypeScript starter repository for creating applications utilizing the SnapChat Snap Kit SDK with Passport-Snapchat.
- Login to Snap Kit Developer Portal and create a new application.
- Enable Login Kit. Add 'http://localhost:3000/callback' to the redirect URLs.
- Enable 'Web' OAuth2 Client and generate API Keys/Secret.
- Copy the 'CLIENT ID FOR CONFIDENTIAL OAUTH2 FLOW' into .env file as SNAP_CLIENT_ID.
- Copy the 'CLIENT SECRET FOR CONFIDENTIAL OAUTH2 FLOW' into .env file as SNAP_KEY.
$ npm install
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov