An ecommerce application using ReactJS, Strapi, GraphQL, MongoDB, and Stripe
A very simple e-commerce example using ReactJS, Strapi, MongoDB, Stripe and SendGrid.
There are a lot of improvements that can be done (e.g. move items in cart to its own component). Also, I had never used
Gastalt before so I experimented with it.
For a free development MongoDB, try MLab
For a good email service, try SendGrid.
Admittedly, this documentation is lacking. Checkout Strapi Documentation for more info.
env.example.js
to env.js
and enter your Stripe API secret key.npm i
then strapi start
.server/config/environments/development/database.json
env.example.js
to env.js
and enter your Stripe API public key.npm i
then npm start
.type: Brand
name: string
description: text
relationship: Brand belongs to many Brews
type: Brew
name: string
description: text
price: number:decimal
realtionship: Brand has many Brews
type: orders
address: string
postalCode: string
city: string
brews: JSON
amount: number:decimal