- integrated with Stripe
- MongoDB (via Mongoose)
- next-auth for authentication
- Dev and Prod Deployments
- uses Github Actions
- uses Serverless Framework for simple deploys to AWS
- uses the next component to utilize the full toolkit of Nextjs
- git clone
- npm i
- create .env file and fill NEXT_PUBLIC_STRIPE_PK, STRIPE_SK, MONGODB_URI, RECAPTCHA_SK
create a secret for the NEXTAUTH_SECRET
- npm run dev
email [email protected]
or just do a pull request
Read CloudWatch Logs (awslogs)
pip install awslogs
awslogs get "//aws\lambda\us-east-1.market-mongo-dev-api" --start='1h ago'
- Give the lambda more memory in serverless.yml
- use-shopping-cart is working on this issue
- The app uses a fork of next-auth
- This will result in bugs, for now just document and watch new threads until an official solution can be found for Serverless usecase Runtime Environment Variables Issues
- nextauthjs/next-auth#1156
- nextauthjs/next-auth#969
- nextauthjs/next-auth#1121
- nextauthjs/next-auth#345
- nextauthjs/next-auth#212
- nextauthjs/next-auth#674
- requires configuration docs
add line "Action": "sqs:*"
to role policy
- login
- autofill email on failed attempt -> should be fixed, needs testing on dev
- email verification -> working local
- product review
- review editing
- admin publish
- receipts
- return???
- landing page
- product extras
- size
- color
- pictures
- description
- Github
- manage: https://github.com/settings/applications/1631352
- allowed in local: Yes
- Facebook
- manage: https://developers.facebook.com/apps (incognito)
- allowed in local: No
- Google
- manage: https://console.cloud.google.com/apis/credentials?authuser=1&project=market-mongo-314800
- allowed in local: Yes
- Twitter
- manage: https://developer.twitter.com/en/portal/projects/1397214706897756161/apps/20974732/keys
- allowed in local: Yes
- Apple
- Discord
- manage: https://discord.com/developers/applications (incognito)
- allowed in local: Yes