Skip to content

Epona-SDC/introduction-service

Repository files navigation

Intro Service

Introduction Service to BnB

Related Projects

Table of Contents

  1. Getting Started
  2. Prerequesites
  3. Installation
  4. Usage
  5. License
  6. Tech Framework used

Getting Started

These are the steps to get up and running with my service 👍

Prerequesites

Make sure you have installed the following prerequesites on your development machine:

Installation

  • Clone repository

git clone https://github.com/Epona-SDC/melvin-service.git

  • Install dependencies

npm install

Usage

  • Create index.js in the config directory

    • In your config/index.js add the following code, with your own credentials:
    module.exports = {
      postgresPassword: `yourPassword`,
      postgresUsername: `userName`,
    };
    • Once your credentials are in this config file you can proceed to the next step.
  • Run csv data builder

    npm run build-data

  • Create database npm run create-db

  • Import data on postgreSQL CLI

  1. From the project's directory change current folder database/data cd database/data
  2. Open postgres CLI sudo -u postgres psql
  3. Run the sql script, to connect to and populate airbnblisting database. Enter the following: \i populateAirbnbListing.sql
  • Build webpack bundle

    npm run build

  • Start express server

    npm run server

The service will then run on http://localhost:3002. Bundle.js file should also be in http://localhost:3002/app.js

Testing w/ Artillery

  • Needs Readme for Artillery usage- See Enhancement Issue

Tech Framework Used

  • React
  • Express
  • postgreSQL
  • Jest
  • webpack
  • Artillery

About

BnB's Introduction Component Service

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published