Giter Site home page Giter Site logo

autoinsurancewebapp's Introduction

AutoInsuranceWebApp

Welcome to our readme for the CPSC471 final project code directory. We are group 7: Mohamed Yassin, Angelo Gonzales, Adam Hiles.

We have 3 directories: API,DataGen,Dummy Website, WebInterface. Download the zip file and extract it.

To run the API:

  1. Install node.js
  2. Navigate to the API directory, and do "npm install" in the terminal. This should install the express and mysql versions listed in package.json
  3. First load the sql script in API/autoinsurance.sql locally into your system. An easy way is to use MySQL workbench and just execute the script there. Then run the API with "node index.js"
  4. If you want to run the API so that your saved changes update immediately without re-typing node index.js, do "npm install -g nodemon", this will install nodemon globally, and you can run your app with "nodemon index.js" Instead.
  5. Change the user and password in index.js to your own mysql username and password. You will need to go to file->open SQL script and open the autoinsurance.sql file in MySQL workbench to actually use it. If that doesn't work, run this command in workbench: "ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';" and replace the password value in index.js with the "password". Basically, make sure you load our SQL script in API/autoinsurance.sql into your local system so you can use the API.

To run the web interface (the website used to access the api):

  1. First make sure the API is running on localhost.
  2. Navigate to the WebInterface directory, and run the "npm install" command in the terminal. This should install all the dependencies needed.
  3. Run the interface with "node server.js".
  4. Open localhost:8080 on Chrome and start exploring the web app.
  5. To clarify, you need two terminals to do this.

To Generate lots of Data for the MySQL database so you can test it. Read the readme in DataGen.

autoinsurancewebapp's People

Contributors

mohamedyassin1 avatar angeloo01 avatar aghiles5 avatar

Forkers

mohamedyassin1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.