Skip to content

Latest commit

Β 

History

History
137 lines (93 loc) Β· 3.46 KB

File metadata and controls

137 lines (93 loc) Β· 3.46 KB

Sociol

Analysts for your Social Media

πŸ“‚ Technologies Used

Frontend

Backend

βœ… Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

πŸ“ Prerequisites

What things you need to install the software and how to install them

βš’οΈ Installation

# Clone this repository
git clone https://github.com/CS161-SJSU/social-analytics

# Go into the repository
cd social-analytics

πŸ’» Client Start-up

# Go into client folder
cd client

# Install client dependencies
yarn install or npm install

# Setup Environment Variables

# Create a .env file in the client folder
# Place your SPOTIFY, TWIITER, GOOGLE CLIENT/SECRET ID in the file

# Start client on localhost:3000
yarn dev or npm run dev

⌨️ Server Start-up

# Create virtual environment (recommend) using conda/virtualenv
conda create --name your_env_name

# Start virtual env
source activate your_env_name

# For Windows
Create the virtual environment named "env":
python -m venv env 

Add the path to the git ignore file (optional):
echo env/ >> .gitignore

Activate the virtual env:
.\env\Scripts\activate
# Setup Environment Variables

# Go into server folder
cd server

# Create a .env file in the same directory where settings.py resides
# Place your SPOTIFY, TWIITER, GOOGLE CLIENT/SECRET ID in the file
# Install server packages from requirements.txt
pip3 install -r requirements.txt or python -m pip3 install -r requirements.txt

# Create new migrations
python3 manage.py makemigrations or Python manage.py makemigrations (Windows)

# Apply new migrations
python3 manage.py migrate

# Start server on localhost:8000
python3 manage.py runserver

βš™οΈ Testing

# Test server using Django unittest
cd server
python3 manage.py test
# Test client using Jest and Enzyme
cd client
npm test

⭐️ Team

πŸ‘©πŸ»β€πŸ’» Trinity Nguyen - trinwin (Project Lead + Frontend Lead)

πŸ‘¨πŸ»β€πŸ’» Cagan Sevencan - cagansevencan (Frontend Developer)

πŸ‘©πŸ»β€πŸ’» Julia Chin - juliachin123 (Backend Developer)

πŸ‘¨πŸ»β€πŸ’» Eric Wu - ericwu12345 (Backend Developer)

πŸ‘¨πŸ»β€πŸ’» Toan Dao - toandaosjsu (Backend Developer)

See also the list of contributors who participated in this project.