🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿
🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿🌿
Enjoy buying your favorite plants 🌺.
Final-course project. Next.js app, made during the CORE Code School bootcamp. It corresponds to a shooping app for an online store that simulates seeing, listing and buying products 👨💻.
Its main product are cacti and succulents. It shows main information about the plants itself and their maintenance 🌵.
Store can be contextualized or adapted to other types of products/stores 🏪.
I wanted to create a big project, something useful and practical, so I decided to make this Headless CMS Shopify shop to get more knowledge with Next.js and React, to improve my experience as a developer.
Clone the project with SSH or HTTPS
git clone git@github.com:Systrent/Cacti-Co.git
Install dependencies
yarn install
Start the application on each one, frontend and backend
yarn run dev
Project dependencies:
├───📁 components/
│ ├───📁 home/
│ │ ├───📄 HomeSection.tsx
│ │ ├───📄 MainProduct.tsx
│ │ ├───📄 ProductCard.tsx
│ │ ├───📄 ProductList.tsx
│ │ └───📄 SectionTitle.tsx
│ ├───📁 info/
│ │ ├───📄 InputButton.tsx
│ │ └───📄 NewCactusForm.tsx
│ ├───📁 layout/
│ │ ├───📄 Footer.tsx
│ │ ├───📄 Header.tsx
│ │ ├───📄 HeaderButton.tsx
│ │ ├───📄 Layout.tsx
│ │ ├───📄 LoginButton.tsx
│ │ ├───📄 Logo.tsx
│ │ └───📄 MainMenu.tsx
│ ├───📁 maintenance/
│ │ └───📄 WorkInProgress.tsx
│ ├───📁 orders/
│ │ ├───📄 CheckoutButton.tsx
│ │ ├───📄 OrdersProductCard.tsx
│ │ ├───📄 OrdersProductList.tsx
│ │ ├───📄 OrdersSection.tsx
│ │ ├───📄 OrdersSectionTitle.tsx
│ │ └───📄 SingleOrderSection.tsx
│ ├───📁 profile/
│ │ ├───📄 FavoriteProducts.tsx
│ │ ├───📄 InputButton.tsx
│ │ ├───📄 NewProfileForm.tsx
│ │ └───📄 ProfileCard.tsx
│ ├───📁 shared/
│ │ ├───📄 AuthenticatedApp.tsx
│ │ ├───📄 Background.tsx
│ │ ├───📄 Spinner.tsx
│ │ └───📄 TokenApp.tsx
│ └───📁 weather/
│ ├───📄 DeleteRecommendation.tsx
│ ├───📄 NewRecommendation.tsx
│ ├───📄 RecommendationCard.tsx
│ ├───📄 RecommendationCardDelete.tsx
│ ├───📄 RecommendationList.tsx
│ └───📄 WeatherSection.tsx
├───📁 lib/
│ ├───📁 connection/
│ │ └───📄 backendAPI.ts
│ ├───📁 context/
│ │ └───📄 tokenContext.ts
│ ├───📁 extra/
│ │ └───📄 formatCurrency.ts
│ ├───📁 fetching/
│ │ ├───📄 authenticatedFetcher.ts
│ │ └───📄 publicFetcher.ts
│ ├───📁 profile/
│ │ └───📄 createProfile.ts
│ └───📁 recommendation/
│ ├───📄 createRecommendation.ts
│ └───📄 deleteRecommendation.ts
├───📁 pages/
│ ├───📁 info/
│ │ └───📄 index.tsx
│ ├───📁 orders/
│ │ ├───📄 index.tsx
│ │ └───📄 [handle].tsx
│ ├───📁 profile/
│ │ └───📄 index.tsx
│ ├───📁 weather/
│ │ ├───📁 admin/
│ │ │ └───📄 create.tsx
│ │ └───📄 index.tsx
│ ├───📄 index.tsx
│ ├───📄 _app.tsx
│ └───📄 _document.tsx
├───📁 public/
│ └───📁 images/
│ ├───📄 cacti_co_favicon.svg
│ ├───📄 cacti_co_logo.svg
│ ├───📄 cacti_co_logo2.svg
│ ├───📄 cacti_co_pet.svg
│ └───📄 product_test.png
├───📁 styles/
│ └───📄 globals.css
├───📁 types/
│ └───📄 emotion.d.ts
├───📄 .babelrc
├───📄 .gitignore
├───📄 next-env.d.ts
├───📄 package.json
├───📄 postcss.config.js
├───📄 tailwind.config.js
├───📄 tsconfig.json
└───📄 yarn.lock
├───📁 src/
│ ├───📁 database/
│ │ └───📄 db.ts
│ ├───📁 models/
│ │ ├───📄 favorite.model.ts
│ │ ├───📄 profile.model.ts
│ │ └───📄 recommendation.model.ts
│ ├───📁 routes/
│ │ ├───📁 favorites/
│ │ │ ├───📄 createFavorite.ts
│ │ │ ├───📄 deleteFavorite.ts
│ │ │ ├───📄 favoriteApp.ts
│ │ │ └───📄 findFavorite.ts
│ │ ├───📁 profile/
│ │ │ ├───📄 createProfile.ts
│ │ │ ├───📄 findProfile.ts
│ │ │ └───📄 profileApp.ts
│ │ ├───📁 recommendations/
│ │ │ ├───📄 createRecommendation.ts
│ │ │ ├───📄 deleteRecommendation.ts
│ │ │ ├───📄 findRecommendation.ts
│ │ │ └───📄 recommendationApp.ts
│ │ └───📁 shopify/
│ │ ├───📄 allProductsQuery.ts
│ │ ├───📄 checkoutMutation.ts
│ │ ├───📄 shopifyApp.ts
│ │ └───📄 singleProductQuery.ts
│ ├───📄 app.ts
│ ├───📄 config.ts
│ ├───📄 seed.ts
│ └───📄 server.ts
├───📄 package.json
├───📄 tsconfig.json
└───📄 yarn.lock
This project is made thanks to the mentorship of the teacher @boyander, as the head of Core Code School's FullStack Bootcamp. In additon want to thanks to my partner @AlfonsoValle, because we did a tough pair programming sessions that helped me a lot.
MIT License
Copyright (c) 2022 Juan Pablo Mora Serrano
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.