Mock Make, a full-stack application inspired by Etsy, is an e-commerce platform where users can buy and sell a wide range of unique products and items.
- Teagan Stutsman
- Nur Unlu
- Finn Beilke
Prerequisites
- NPM
- A version of Node.js >= 14 on your local machine
- Python 3.9
- PostgreSQL
- An AWS S3 bucket
Installation
-
Clone the repo
-
Install dependencies
pipenv install --dev -r dev-requirements.txt && pipenv install -r requirements.txt -
cd react-appand runnpm install -
Create a .env file based on the example with proper settings for your development environment
-
Setup a PostgreSQL database, user, and password and make sure they match your .env file.
-
Get into your pipenv, migrate your database, seed your database, and run your app
pipenv shell
flask db upgrade
flask seed all
flask run
-
Create your AWS user and bucket:
- Create a bucket: (https://s3.console.aws.amazon.com/s3/home?region=us-east-1)
- Navigate to ( https://console.aws.amazon.com/iam/home?#/users) to create a user with
Programmatic access. - Set up a security policy for your user: 'Attach existing policies directly' => 'Create Policy'
- Click the
JSONtab and set a policy.
-
Now update your .env with your
S3_BUCKET,S3_KEY,S3_SECRET -
Fire up your servers:
flask runin root andnpm startinreact-app
- JavaScript
- React
- Redux
- PostgreSQL
- Python
- AWS SDK
- Authentication
- New account creation, log in, and log out functionalities.
- Guest/demo login option for trying out the site.
- Users must be logged in to access orders, wish lists, or create reviews.
- Products
- CRUD operations for product listings.
- Users can create new product listings.
- Users can view existing listings.
- Creators can update or delete their own product listings.
- Cart
- CRUD operations for the shopping cart.
- Users can create a new order.
- Users can view the items in their order.
- Users can update or delete items in their order.
- Reviews
- CRD operations for product reviews.
- Users can create new reviews on items.
- All users can read existing reviews on items.
- Review creators can delete their own reviews.
- Orders
- CRD operations for orders.
- Users can see open and past orders.
- Users can submit their current cart as an order.
- Users can cancel open orders.
- Wish List
- CRD operations for wish lists.
- Users can create a wish list of items.
- Users can view items on their wish list.
- Users can delete items from their wish list.
- Search
- Users can search for products based on names or categories.
- Advanced search filters available for refining search results.
Mock Make provides a user-friendly authentication system allowing users to sign up for new accounts, log in, log out, and use a guest/demo login option for exploring the site without creating an account. Access to certain features such as orders, wish lists, and creating reviews is restricted to logged-in users.
Users can browse through a wide range of products listed on Mock Make. Logged-in users can create new product listings, update their own listings, and delete them if needed. Any user can view existing product listings to discover unique items available on the platform.
The shopping cart feature allows users to add products they wish to purchase. Logged-in users can create new orders from their cart, view the items in their order, update quantities or remove items, and proceed to checkout. This feature provides a seamless shopping experience for users.
Users can share their experiences by writing reviews for products they have purchased. All users can read existing reviews to make informed decisions when browsing products. Review creators have the ability to delete their own reviews if needed, maintaining control over their feedback.
Mock Make keeps track of users' orders, allowing them to view both open and past orders. Logged-in users can submit their current cart as an order, review order details, and cancel open orders if necessary. This feature streamlines the order management process for users.
Users can create wish lists of their favorite items on Mock Make. This feature enables users to keep track of products they are interested in purchasing in the future. Users can easily view and manage items on their wish list, removing items as needed.
Mock Make offers a robust search functionality, allowing users to find products based on keywords, categories, or specific criteria. Advanced search filters are available to refine search results, making it easier for users to discover relevant products quickly.
Users can log into an existing account or sign up and create a new account. Users can also test the site with the Demo Login feature.
Users can add products by clicking on add to cart and view, update, delete items and check out in the shopping cart via the sidebar. The sidebar can be opened by clicking on the cart button in the navigation or by clicking the 'add to cart' button.
Users can checkout on the cart and create an order, then delete any pending orders.
Logged-in users can add, view, and delete reviews. They can also add an image to their review.
Users can add products to their wish lists, and view and delete their wish lists. They can also add products from their wish lists to their shopping carts.
Users can search for products name using the Search feature.
- React: https://react.dev/
- Redux: https://redux.js.org/
- Flask: https://flask.palletsprojects.com/en/2.3.x/
- WTForms: https://wtforms.readthedocs.io/en/3.0.x/
- SQAlchemy: https://www.sqlalchemy.org/

















