Git Product home page Git Product logo

rsvp's Introduction

#### ReadMe ####
Code done by willrsvpwdc was done by the owner of Davo176. a new account was created due to github codespaces issues

5 minute overview of the website can be viewed at:
    https://www.youtube.com/watch?v=z3SIrZBdOIE&ab_channel=WDCRSVP

Steps to get website running:
1. Install latest configuration files in codespace:
    rm -f ~/.bashrc ~/.bash_profile ~/.profile ~/.eslintrc
    curl -Lo ~/.bash_profile https://github.com/ian-knight-uofa/uofa-tools/releases/download/22.05.17/bashrc
    curl -Lo ~/.eslintrc https://github.com/ian-knight-uofa/uofa-tools/releases/download/22.05.17/eslintrc
    exit
2. Retrieve server files:
    (Make sure you're in a blank directory if havent setup before, or in same folder as last time)
    export GITHUB_TOKEN="your token"
    git clone https://github.com/RSVPWDC/RSVP.git (If havent setup before)
    git checkout master (If on another branch)
    git pull
3. Update node_modules folder:
    npm install
4. Start mysql server:
    sql_start (Start server)
    mysql --host=127.0.0.1 < sql/backup.sql (To restore database backup)
5. Start express server:
    npm start (Make sure port server is running on is set to public)
6. We recommend signing in with the following google account
    Email: [email protected]
    Password: ****** (Send message to me for password)

Accounts within the website:
    Username: Bugs Password: admin1234
    Username: Daffy Password: admin1234
    Username: Harrison Password: admin1234
    Username: MeepMeep Password: admin1234
    Username: Neil Password: admin1234
    Username: Porky Password: admin1234
    Username: Seamus Password: admin1234
    Username: Speedy Password: admin1234
    Username: Will Password: admin1234

Google Login (Recommended):
    To use google login, you must be signed into an developer email:
        Email: [email protected]
        Password: ****** (Send message to me for password)
    Once signed into the google account, you can access the website
    via google sign in

Steps to query database:
1. If database is not running start database
    sql_start (Start server)
    mysql --host=127.0.0.1 < sql/backup.sql (To restore database backup)
2. Connect to Database:
    mysql --host=127.0.0.1
3. Set mysql to use the production database
    use production
4. Run queries
####################

#### Old ReadMe ####
To Run Database:
sql_start

Connect to Database (Query it in terminal):
mysql --host=127.0.0.1

Exit Database
exit

stop database
sql_stop

To backup database
mysqldump --host=127.0.0.1 --databases production > sql/backup.sql

To restore database backup
mysql --host=127.0.0.1 < sql/backup.sql

Github Routine

When writing new code:
  Checkout new branch
  git checkout -b "W-Example"
    replace W with your first initial
  make your changes to files
  IF YOU WANT, BACKUP THE DATABASE ONLY CHANGE backup.sql
  at key points we may want to create more backups.
  git status
    to see which files you have made changes to
  git add
    add files you have made changes to
  git commit -m "message"
  git push
  git push -set--upstream origin
  open github
  open pull request

To update to newest code from master:
  git checkout master
  git pull


rsvp's People

Contributors

semu112 avatar willrsvpwdc avatar nmazzy avatar rsvpwdc avatar hazzaj467 avatar davo176 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.