/market-mongo

Severless E-Commerce Marketplace

Primary LanguageJavaScript

Features

  • 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

Start

  1. git clone
  2. npm i
  3. create .env file and fill NEXT_PUBLIC_STRIPE_PK, STRIPE_SK, MONGODB_URI, RECAPTCHA_SK

create a secret for the NEXTAUTH_SECRET

  1. npm run dev

Contribute

Getting started

email codabool@pm.me or just do a pull request

Errors

Read CloudWatch Logs (awslogs)

pip install awslogs

awslogs get "//aws\lambda\us-east-1.market-mongo-dev-api" --start='1h ago'

503

  • Give the lambda more memory in serverless.yml

redux-persist failed to create sync storage. falling back to noop storage.

  • use-shopping-cart is working on this issue

Callback or Authentication issues

[next-auth][warn][jwt_auto_generated_signing_key]

  • requires configuration docs

Access Denied SQS

add line "Action": "sqs:*" to role policy

Developer Notes

TODO

  • 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

OAuth Providers