Welcome to Crochet? No Way!, an e-commerce site for all your crochet needs.
This project is built using the following technologies:
- React: A JavaScript library for building user interfaces.
- Redux Toolkit: The official, opinionated, batteries-included toolset for efficient Redux development.
- Strapi: A headless CMS that provides a customizable backend for managing content.
- Stripe: A secure and developer-friendly way to accept payments online.
- Node.js: A JavaScript runtime built on Chrome's V8 JavaScript engine.
- npm / Yarn: Package managers for installing JavaScript libraries and managing dependencies.
-Adobe Illustrator and Adobe Fresco for custom logo design.
Additional libraries and tools may be found in the project's dependencies listed in the
package.json
files for the server and client.
To run the app, follow these steps:
-
Obtain a secret key from Stripe.
-
Set up your environment variables:
- In the
server
folder, create a.env
file. - Add your Stripe secret key to the
.env
file using the following format:STRIPE_SECRET_KEY=your_secret_key_here
- In the
-
Navigate to the
server
folder and run:npm run start
-
Navigate to the
client
folder and run:npm run start
- Home page carousel
- Display products using a Strapi backend
- Filter products
- Add products to your cart
- Checkout using a Stripe API call
Please note that the website is not currently connected to a bank account and does not list real products.
For Stripe integration, refer to the Stripe Checkout Quickstart guide.
You can use the following test cards for simulation:
- Payment succeeds:
4242 4242 4242 4242
- Payment requires authentication:
4000 0025 0000 3155
- Payment is declined:
4000 0000 0000 9995
GET /api/:pluralApiId
: Get a list of entriesPOST /api/:pluralApiId
: Create an entryGET /api/:pluralApiId/:documentId
: Get an entryPUT /api/:pluralApiId/:documentId
: Update an entryDELETE /api/:pluralApiId/:documentId
: Delete an entry
-Add .env setup instructions to readme
To prevent adding duplicate items to the cart, a feature is implemented.
MIT License
Copyright (c) (2023) Natalie Benjes
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.