Skip to content

reallow-ghrsea/component-photo-carousel

 
 

Repository files navigation

Photo Carousel

Microservice which handles display of any given property's photos to the Xillow Talk application.

Related Projects

Table of Contents

  1. Usage
  2. Requirements
  3. Development

Usage

DB Schema and Seeding

Make a copy of config.example.js and rename it to config.js. Replace the placeholder text with your mysql username and password.

// config.js
module.exports = {
  mysqlUser: 'YOUR USERNAME HERE',
  mysqlPass: 'YOUR PASSWORD HERE',
};

From the root directory of this service, run npm run seed. This script will create a xillow database, 2 tables (properties and photos), and then populate the properties table with 100 entries, and the photos table with roughly 3500 entries (20-50 entries per property).

Building the Client

From the root directory of this service, run npm run build. This will generate bundle.js in the client/dist directory.

Running the Server

From the root directory of this service, run npm run start. This will start up a localhost on port 3333 with the client files. Open a web browser and visit http://localhost:3333/.

Requirements

Development

Installing Dependencies

From within the root directory:

npm install

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.6%
  • HTML 3.8%
  • Dockerfile 0.6%