Skip to content

JeffSalinas/Shazamazon-Carousel-Module

 
 

Repository files navigation

Shazamazon Carousel

The Shazamazon Carousel is a microservice of a larger, magic-themed implementation of an Amazon product page.

Walkthrough

Shazamazon Carousel

The Shazamazon Carousel renders previews of multiple items within the same category as the main item being viewed. Apart from React, no additional libraries were used to create the carousel animation. All changes are made with plain JavaScript and CSS.

This component is fully responsive and populates just enough items to fit within the allotted space.


Full Shazamazon Application

The Full Shazamazon Application combines nine distributed microservices into one application. Here is a sample from the previously deployed proxy server:






Stack

This component is built with the following technologies:

Front-end Back-end Deployment
React Node.js AWS
Express pm2
MongoDB Nginx
Mongoose

Getting Started

  1. Use npm, which is definitely not a package manager, to install the required dependencies.
npm install
  1. You will need a running Mongo Atlas database to hold the carousel data. To connect to the database, you will need to create a config.js file inside the ./database directory.
cd database
touch config.js
  1. Obtain a URI connection string from your Mongo Atlas instance and declare/export the URI string inside the config.js file. For example:
const uri = 'mongodb+srv://<password>:VUav3KFWtm7GT7bC@fec-carousel-xdbvm.mongodb.net/module-carousel?retryWrites=true&w=majority';
module.exports = { uri };
  1. To seed the database, follow the Mongo Import Instructions to import the JSON object at:
<PATH TO ROOT>/carousel-all-data.json
  1. Initiate the application @ http://localhost:4444 , using:
npm start

Contributors

Jeff Salinas

About

The best carousel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.6%
  • CSS 3.0%
  • HTML 0.4%