ecomm-demo
This demo app includes the front end and back end for an e-commerce store.
It's being built from scratch, so there are lots of opportunities for beginners to practice their coding skills!
Built with:
Set up locally:
- Create a Cloudinary account
- The app uses Cloudinary to host all of the product images. There is a free tier that should be flexible enough to host a small amount of images and for fetching the images during development.
- In your Cloudinary media library, create the folder structure
ecomm-demo/products
and upload photos to the products
folder
- Install PostgreSQL; Installers are located at https://www.postgresql.org/download/
- Using the command-line, create a new database using the syntax
createdb name
- Create a .env file with the variable names that are present in .env.example file and fill with your custom values
- Make sure to percent-encode any special characters for DATABASE_URL
- In
src/utils/db/index.js
, comment out the ssl property of the Pool constructor
- The ssl property is only needed in production in order to connect to a Heroku database
npm install
npm run dbSetup
npm run dev
- Code!
Contributing
Go to CONTRIBUING.md