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 install
in project directory. This will install server-related dependencies such asexpress
. cd client
and runnpm install
. This will install client dependencies (React). Also you need to runnpm install twit
to install the Twitter library for the Twitter API calls. Also you need to runnpm install react-bootstrap bootstrap
andnpm install styled-components
for 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
.env
file 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 migrate
in 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
questions
table is constructed. In your MySQL console, you can runuse trending;
and thendescribe questions;
to see the structure of the questions table.
- Run
npm start
in project directory to start the Express server on port 5000 cd client
and runnpm start
to start client server in development mode with hot reloading in port 3000.