GitXplorerGitXplorer
a

nuxt-shop

public
0 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
95011970da17435478546f23da183b79887bbe17

Change fetching endpoints at nuxt.config.js

aalmirleandro committed 4 years ago
Unverified
7a649a5dedbe024d2e2c1f3b56518457f2671c0f

Update README.md and add Try/Catch to any Async/Await

aalmirleandro committed 4 years ago
Unverified
3270398b8d3132b02204fa7f7d39f5dec4eed820

Fix design bug at homepage

aalmirleandro committed 4 years ago
Unverified
5e75728c28c47dfd541ccec37795b56d9d72d65c

Implement sticky navbar and add cart display on mobile design

aalmirleandro committed 4 years ago
Unverified
8cfe1f044eb835a5089ed7568e2f105207e45b61

Change PWA icon

aalmirleandro committed 4 years ago
Unverified
8e1e80edc3247acc39c04f82c7e5ecc9f51b16d6

Implement PWA

aalmirleandro committed 4 years ago

README

The README file for this repository.

Project logo

Nuxt Shop


An e-commerce project with MACH technology for a Proof of Concept

DEMO: https://nuxt-ecommerce-template.netlify.app/

📝 Table of Contents

🧐 About

Nuxt Shop uses MACH technology together with a JAMstack to provide a Proof of Concept (POC) of an e-commerce. This project is also a PWA, which means that you can install it easily on a smartphone or on a PC as an application.

🏁 Getting Started

These instructions will get you a copy of the project up and running on your local machine for development purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

What things you need to install the software.

  • Node Installed.
  • NPM and Netlify CLI packages installed as global dependencies.
  • An Amplience account with some blog posts.
  • A Commercetools account with some products.

Installing

Clone this repo to your machine, cd into the project directory and do the following:

  1. Install dependencies running npm install on the command prompt.
  2. Run netlify dev to get both your project and the serverless functions running on your local environment. (For this step, you need to have the netlify-cli npm package installed globally).

You should see now the bare bone of the project in perfect conditions, but with no "life" yet, since you need to set up the serverless functions in order to get the content for the e-commerce.

Configure Serverless Functions

Inside the /functionsfolder at the project root directory, there are six functions configured already to run on Netlify (you can also check the netlify.toml file to check its setup).

All functions receive API keys either from Commercetools or from Amplience. In order to get them, you need to sign up to these platforms and create your own content inside of them.

NOTE: the Front End of the application certainly will need some changes in order to consume the data from the platforms. Attention particularly to any data that goes through Apollo, both in the functions and inside the /pages folder.

🚀 Deployment

In order to deploy the project, Netlify is a good option, since it is already configured to use Netlify Functions. To do so, follow the instructions in the Nuxt documentation for a statically generated site.

⛏️ Built Using

💪 Contributing

If you find anything that needs to be improved or solved or have a great idea for the project, feel free to raise an issue. Thank you.