Skip to content

This is a website that I have contributed to which is under development by the Development of Web Apps and Services class at Northwest Missouri State University. My commits are under the name s522706, and the files that I edited can be located by searching "David Bruce".

License

Notifications You must be signed in to change notification settings

DavidDBruce/CGE

Repository files navigation

CG Estimator

A job-costing application for CG Coatings

  • Node.js platform
  • Express web framework
  • EJS templating engine
  • MVC design pattern
  • Mongoose mongodb object modeling for node.js
  • Lodash for JavaScript object iteration and manipulation
  • jQuery library for DOM manipulation
  • BootStrap framework for responsive clients

Developed as part of the profession-based learning cirriculum at:

Northwest Missouri State University School of Computer Science and Information Systems Dr. Carol Spradling, Director Maryville, MO

Contributors

Client

  • Curt Carpenter

Faculty

  • Denise Case
  • Jerry Qin
  • Michael Rogers
  • Diana Linville

Assistants

  • Sec 02 Rathnakar Ettidi, course assistant
  • Sec 03 Sandip Subedi, course assistant
  • Sec 04 Vamsi Ravva, course assistant

Developers, Designers, and Software Engineers

  • Fall 2016 44-563 Web Apps Sections 3,4,5, 6
  • Spring 2017 44-563 Web Apps Sections 2,3,4
  • Spring 2017 44-144 Web Apps Section 1

Prerequisites

Following must be installed to run this application

  1. MongoDB
  2. Node.js V6.0+

Get started

Clone this repo to your local machine.

If Windows,

Modular design

The applications helps our client create cost estimates for:

  • Roofing jobs
  • Flooring jobs
  • Waterproofing jobs

Each type of estimate shares common features

  • Based on area (sqft)
  • Includes material costs
  • Includes mileage
  • Includes labor
  • Includes miscellaneous costs

Collaborative effort

We are building on work produced by the Fall 2016 Web Apps developers.

Please see the About / Teams pages for more information about how to contact us.

Process

This application will be started in A04, extended in A05, and completed in A06.

Initialize (do these just once when setting up the project)

Clone a copy of your section repository to your c:\44563 folder.

Open a command window in this project folder (e.g. C:\44563\jc2).

Install nodemon globally to enable live updates.

> npm install -g nodemon

Install Typescript globally to enable TypeScript language features.

> npm install -g typescript

Install Yarn globally to enable Yarn package manager. Download Yarn from https://yarnpkg.com/en/docs/install#windows-tab and install using the defaults. Verify by checking the version.

> yarn --version

Install dependencies as needed before running the app

Run npm install to install all the dependencies in the package.json file once before you begin and as new dependencies are added.

> npm install

OR run faster, safer yarn install. Yarn performs the same functions as npm. Install is the default yarn command, so you an just type "yarn" to update all dependencies and the autogenerated yarn.lock file.

> yarn install
> yarn 

Start up Mongodb

Do create folder in C dirve as: C:\data\db

  • Click the windows icon in the lower left of your screen
  • Right-click "computer" and click properties
  • In the nav on the left side of the page click on "Advanced system settings"
  • Click Environment Variables
  • Under the user section click PATH so that the section is highlighted and click edit
  • In variable value go all the way to the end of the text and add ";C:\Program Files\MongoDB\Server\3.4\bin" to it

Right-click on the project folder and open Git Bash. Run mongod to start MongoDB. (When done working the application, you can hit CTRL-C to stop.)

$ mongod 

Run the app

In Windows, right-click on the project folder and "Open Command Window Here as Administrator". At the prompt, type nodemon app to start the server. (CTRL-C to stop.)

> nodemon app.js

Point your browser to http://localhost:8082

Building and editing the code

Install Visual Studio Code.

Right-click on your project folder and select "Open with Code".

To type commands from within VS Code, from the VS Code menu, select View / Integrated Terminal.

  • Install Extension: tslint
  • Under VS Code menu "File" option, check "Autosave"

PULL FIRST

For a better experiences, never make changes to stale code.

Before making any changes, pull new code.

Make small changes and commit.

If away from the code for awhile, always pull new code.

The repo will change OFTEN and A LOT. :)

Git Pull

References

Hackathon-Starter project

About

This is a website that I have contributed to which is under development by the Development of Web Apps and Services class at Northwest Missouri State University. My commits are under the name s522706, and the files that I edited can be located by searching "David Bruce".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 26