A Twitter Facebook Mashup Quiz game
Pitch Deck for the project (template from Google Ventures): https://docs.google.com/presentation/d/1dv2TSBIKWLv7cPyQvQncISu316iFXRXFCRaRKQ4m8dw/edit#slide=id.gd5b09a965_5_0 Database schema https://app.dbdesigner.net/designer/schema/330364
- Run
npm installin project directory. This will install server-related dependencies such asexpress. cd clientand runnpm install. This will install client dependencies (React). Also you need to runnpm install twitto install the Twitter library for the Twitter API calls. Also you need to runnpm install react-bootstrap bootstrapandnpm install styled-componentsfor some elements that I've used in the front end.
- Access the MySQL interface in your terminal by running
mysql -u root -p - Create a new database called TrendingQs:
create database trending - Add a
.envfile to the main folder of this repository containing the MySQL authentication information for MySQL user. For example:
DB_HOST=localhost
DB_USER=root
DB_NAME=facebook
DB_PASS=YOURPASSWORD-
Run
npm run migratein the main folder of this repository, in a new terminal window. This will create a table called 'students' in your database. -
Make sure you understand how the
questionstable is constructed. In your MySQL console, you can runuse trending;and thendescribe questions;to see the structure of the questions table.
- Run
npm startin project directory to start the Express server on port 5000 cd clientand runnpm startto start client server in development mode with hot reloading in port 3000.