A UFO Sighting Blog that allows users to view and research sightings, vote for sightings, and make comments.
To install locally, clone this repository to your local environment. This is a node application, so node must be installed. MySQL must also be installed locally. For mySQL installation see https://dev.mysql.com/doc/refman/8.0/en/installing.html. If you need to install node, check out this link https://nodejs.org/en/download/. Once mySQL and node (and npm) are installed, attach to the repository root directory and update npm dependencies with the following commands:
- npm install bcrypt dotenv
- npm express express-handlebars express-session handlebars
- npm mysql2 nodemon sequelize connect-session-sequelize
Additionally you must execute the a database initialization script. Attach to the root directory of the repository and connect to mySQL, then type the source command...
mysql> source db/schema.sql
THIS SQL SCRIPT SHOULD ONLY BE RUN ONCE TO INITIALIZE THE MYSQL DATABASE/SCHEMA AS A FIRST-TIME SETUP.
To execute the application using the Heroku deployed application, click the following link:
https://msdale-whats-out-there.herokuapp.com/
The application interface should appear as "What's out there?" in your browser.
To execute the application locally, you have 3 command-line options. From the root directory of the repository clone, type one of the following:
- npm run start (starts the server and connects to the database)
- npm run startover (starts the server and synchronizes database with sequelize models...all data lost)
- npm run startseed (starts the server and synchronizes database with sequelize models...all data replaced)
The application interface will be available in your browser as:
The application must remain running in the terminal until your done with it, at which time you can terminate it with a CTRL-C keystroke.
Any questions, please contact Mark Dale.
My email address is: msdaledad@gmail.com My github profile is https://github.com/msdale