Social networking app that connects supplier, producers, and consumers of organic household waste.
Explore the docs »
- Typescript
- Express
- PostgreSQL
- Prisma
- JWT
- Stripe API
- JEST
- AWS S3
- AWS RDS (Optional)
- AWS Lambda (Optional)
- AWS SES (Optional)
- Serverless Framework (Optional)
- Webpack (Optional)
There's a few things you need to do to get started:
-
npm
-
API Keys
Stripe & Stripe webhook, AWS S3 bucket, AWS SES
-
Database you need to install postgres local database & put it in the server local .env
- Clone the repo
git clone https://github.com/pmcc12/CompostApp.git
-
Install NPM packages
- CompostApp/client
npm i
-
Enter your API key & credentials in your local
.env
-
Install NPM packages
- In CompostApp/server
npm i
-
Install Prisma CLI
-
npx prisma generate
-
Create table (Do Migration)
npx prisma migrate dev --name "init" --preview-feature
-
-
Create Amazon S3 config
Put in the
.env
-
Stripe checkout
Put in the
.env
-
Stripe webhooks
Use
ngrok
to make localhost accessibleput the webhook endpoint & registered it in stripe dashboard webhook
Choose:
- charge.succeeded
- checkout.session.completed
Put in the
.env
-
To use Email ses,
Put the aws config in
.env
put the
email_source
&email_ReplyToAddresses
in.env
-
npm start
-
Optional
if you want to deploy the backend in AWS Lambda
sls deploy
You must provide the:
serverless config credentials — provider aws — key <your-access-key-id> — secret <your-secret-key>
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request