This repository holds the source code to Cleaning Marketing Service that is built with NodeJS/Express/MongoDB.
Navigate to the package.json
file and input/create the following.
-
You must have the following prerequisites installed:
-
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.
Perform steps 1-3:
Clone cleaning-service
locally. In a terminal, run:
$ git clone https://github.com/Luehang/cleaning-service.git cleaning-service
-
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>
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!