- This is project 2, a fullstack Express app, as a student in the PerScholas Program w/ WCC
A virtual store using Express.
This example helps show:
- Interaction between webpages
- Interaction between DB and webpages
This application allows a user to simulate the purchase of an item from a shop that is connected to a database. Not only can the user purchase an item, they can add/edit/or remove items as well.
You can see my Express Coin Shop in action here:
Here are a few screenshots of my shop:
- Fork and clone this repository to your machine
- Change into the new directory
- Run npm install:
npm install
- Create a .env file and setup your DB
- Example of code below:
MONGO_URI=mongodb+srv://USERNAME:PASSWORD@DB_NAME.demfm.mongodb.net/CLUSER_NAME?retryWrites=true&w=majority
PORT=3000
- Open a Terminal and seed the database:
node .\seed.js
- Run nodemon
nodemon
- Finally, open a browser window, and navigate to http://localhost:3000/products
You're all set to run this sample shop on your machine.
- HTML5
- CSS3
- Javascript
- Express.js
- Mongoose and MongoDB
- Heroku