GithubHelp home page GithubHelp logo

bratah123 / cpsc332termproject Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 1.23 MB

This repo stores the term project for Database Class CPSC 332 for CSUF

License: MIT License

HTML 15.63% Shell 11.57% PHP 71.80% CSS 0.99%

cpsc332termproject's Introduction

CPSC332TermProject

This repo stores the term project for Database Class CPSC 332 for CSUF

Instructions on Work Flow

  1. Ensure that sshpass is installed
    • apt-get install sshpass for Debian-based OSes
  2. Ensure that upload.sh has permissions to run
    • chmod 755 upload.sh db.sh
  3. Ensure that the password file is configured (see Step 7 below)
  4. Run upload.sh to transfer everything in homepage folder into the virtual machine.
  5. Run db.sh to update the database AFTER running upload.sh.
  6. Use Visual Studio Code with PHP and MySQL on local PC to locally test changes
  7. In Bash run php -S 127.0.0.1:5500 to be able to execute and view PHP files locally.

Instructions to set up automation (already done for this repo)

  1. create a file in the repo root called password (no file extensions)
  2. commit and push
  3. create a file in the repo root called .gitignore, and type password in the that file
  4. commit and push
  5. use the command git rm --cached ./password to tell Git to stop tracking the file
  6. commit and push
  7. After cloning on WSL, add the VM's password to the first line of the password file
    • On Ubuntu, use nano ./password
    • Type the password
    • CTRL + O and CTRL + X to save and exit
  8. Alter upload.sh with the correct account number and pwd of the destination directory
  9. Create a file with the following name: .my.cnf
  10. Add the following contents (replace the contents inside the quotes):
[client]
user=cs332g20
password="INSERT_THE_DATABASE_PASSWORD_BETWEEN_THE_QUOTES"
  1. SCP the file onto ~/ of th remote server (since text editors are not installed there)

Extra

Link to the website: http://ecs.fullerton.edu/~cs332g20/

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.