Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

AnnawanDev/NewTechLearning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

New Tech Learning

This is the final project for CS340 at Oregon State by Nora Marji and Ed Wied.

Environment config Setup

  • npm i to install NPM dependencies
  • add a .env file with the following:
DATABASE_HOST={db host name}
DATABASE_USER={db user name}
DATABASE_PASSWORD={db user password}
DATABASE_NAME={db name}
JWOT_SIGNING={signing password}

The .env file should be in the src directory, with a set up like,

# Database
DATABASE_HOST=localhost
DATABASE_USER=RuntimeTerror
DATABASE_PASSWORD=whatPassword?
DATABASE_NAME=Jan20DB
DATABASE_PORT=3306

# Authentication
JWOT_SIGNING=goTeamRuntimeTerror!!!

Database Setup

  1. Create database
mysqladmin create cs340_wiede
  1. Load import
 mysql cs340_wiede < cs340_wiede.sql
  1. If you don't already have a user account, create user account,
CREATE USER 'RuntimeTerror'@'localhost' IDENTIFIED BY 'whatPassword?';
  1. Give user account permission on db,
GRANT ALL PRIVILEGES ON *.* TO 'RuntimeTerror'@'localhost';
  1. Need to run FLUSH PRIVILEGES;

You should then be able to run db locally with full rights to do whatever. You can verify user is added with SELECT user FROM mysql.user;

Run Modes

Local

  • Build and Run: npm run start
  • Build and Run in Debug (nodemon): npm run dev

Production

  • Build and Run with Forever: npm run prod
  • Stop Forever Production Run: npm run stopProd

About

OSU CS340 Final Project with Nora Marji and Ed Wied

Resources

Stars

Watchers

Forks

Contributors 2

  •  
  •