/cleaning-service

Primary LanguageJavaScriptApache License 2.0Apache-2.0

Cleaning Marketing Service's Source Code

This repository holds the source code to Cleaning Marketing Service that is built with NodeJS/Express/MongoDB.

Collaboration

Navigate to the package.json file and input/create the following.

Before you Begin

  • You must have the following prerequisites installed:

    • Node.js runtime v7.7.4 or greater (including the npm package manager)
    • MongoDB database
  • The following is not required to start up, but obiviously you should have these for production:

    • Have a Google Analytic account with a new tracking ID created for the site. This will be use for analysis on the website.
    • Have a SendGrid account with a secret API key and a receiving email address. This will be use for receiving email messages from customers and sellers on the website.

Steps to Run Locally

Perform steps 1-3:

  1. Clone the Repo
  2. Edit Files and Create .env File
  3. Run the Web Application

1. Clone the Repo

Clone cleaning-service locally. In a terminal, run:

$ git clone https://github.com/Luehang/cleaning-service.git cleaning-service

2. Edit Files and Create .env File

  • Find the main app.js file and skim through it to find the development logger for debugging. Uncomment the highlighted code below for testing purposes.

  • Modify env.example's name to .env and populate the service credentials as you create/retrieve the credentials:

    # SendGrid Environments at https://www.sendgrid.com
    SENDGRID_API_KEY=<put Secret API Key here>
    SENDGRID_TO_EMAIL=<put receiving email here>
    
    # Google's Analytic tracking ID for the Global Site Tag (gtag.js) tracking code
    GOOGLE_TRACKING_ID=<put google tracking id here>
    

3. Run the Web Application

Enter the following while in the cleaning-service/ directory to run the app locally...

$ npm install
$ npm start

Application will run default at localhost:5000...

Happy coding!

License

Apache 2.0