GithubHelp home page GithubHelp logo

jakesmith1 / gregarious-giraffes Goto Github PK

View Code? Open in Web Editor NEW

This project forked from generous-giraffes/gregarious-giraffes

0.0 2.0 0.0 1014 KB

Thesis Project

JavaScript 78.91% HTML 0.39% CSS 20.70%

gregarious-giraffes's Introduction

gregarious-giraffes

Thesis Project

Roles

  • Scrum Master, Sara Sailors
  • Product Owner, Jake Smith
  • Developers: Laurhens Daudier, Sara Sailors, Jake Smith

How to Run Locally:

  • npm install
  • node server/server.js
  • webpack - w

How to Deploy with AWS using EC2 / Elastic Beanstalk

  • cd ~/.ssh
  • cd keypairs
  • ssh -i "giraffes.pem" [email protected]
  • git clone repository (unless you already have)
  • cd into repository
  • sudo npm install
  • sudo apt-get install mysql-server mysql-client
  • sudo npm install -g webpack
  • ONE TAB
    • mysql -u root -p
    • type in whatever password you used
    • create database giraffes;
    • use giraffes;
  • SECOND TAB
    • node server/server.js
    • if you are in a place where you want it to run forever do this --> forever start server/server.js
    • if you need to kill the nodes b/c it says IN USE, run --> killall -9 node
  • THIRD TAB
    • webpack --> public link: ec2-35-161-238-190.us-west-2.compute.amazonaws.com

Some basic MySql commands:

  • show tables;
  • show columns;
  • select name, email from users;
  • select * from users; //the images will distort the table display, it is better to select specific columns
  • select name, email hobbies from users where name='insertName'; //type the ' ' for this one

Things you can do with this app:

  • Sign up / log in
  • Fill out the profile survey
  • Add an image
  • Can add additional photos to your profile (which display on the dashboard)
  • Dashboard
    • Search for friends
    • Add a friend
    • Comment on images that users add
  • Chat
  • Events
    • Can create an event
    • Can 'attend' an event
    • When you add an address or location, it uses Google maps to mark the location

How to set up a local MySQL database:

  • first, make sure you have mysql installed (npm install mysql)
  • at the command prompt type: mysql.server start, then, $ mysql -h localhost -u root -p, and enter a password for the root user, this password will go in server/db/index.js
  • when in the mysql terminal type: create database giraffeLocal;, and then type: use giraffeLocal;
  • go to index.js in server/db and make sure that the knex library initiation with host: 'localhost' is uncommented, and that the other knex initiation is commented out
  • enter your password for your mysql root user in the connection object

gregarious-giraffes's People

Contributors

saradelarosa avatar jakesmith1 avatar ldinho avatar

Watchers

James Cloos 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.