CIS4914 - Senior Project
brew install mariadbbrew services start mariadb(Note: password for sudo is your computer login password)
sudo mysql -u rootCREATE USER 'user1'@'localhost' IDENTIFIED BY 'password1';GRANT ALL PRIVILEGES ON *.* TO 'user1'@'localhost';FLUSH PRIVILEGES;exit
mysql -u user1 -p
# When prompted, enter: password1CREATE DATABASE faangUsers;
USE faangUsers;SHOW DATABASES;CREATE TABLE user_signup (
id INT AUTO_INCREMENT PRIMARY KEY,
firstName VARCHAR(100) NOT NULL,
lastName VARCHAR(100) NOT NULL,
username VARCHAR(50) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
email VARCHAR(100) NOT NULL UNIQUE
);
CREATE TABLE user_data (
id INT PRIMARY KEY,
totalNumHintsEasy INT NOT NULL DEFAULT 0,
totalNumHintsMedium INT NOT NULL DEFAULT 0,
totalNumHintsHard INT NOT NULL DEFAULT 0,
totalDebug INT NOT NULL DEFAULT 0,
totalComplexity INT NOT NULL DEFAULT 0
);SHOW TABLES;sudo apt updatecurl -LsS https://downloads.mariadb.com/MariaDB/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version=11.5.2sudo apt update
sudo apt -y install mariadb-server mariadb-clientsudo systemctl start mariadb1. Install MariaDB from: https://mariadb.org/
- If you change the install path, remember it.
- If you set a password, remember it.
- Enable UTF-8 as the default character set.
- Remember the port number set.
cd "\Program Files\MariaDB 11.5"
cd bin
mysql -u root -p or .\mysql -u root -pNote: If you changed the install path, use PATH\MariaDB 11.5 instead.
git clone https://github.com/carolynw25/FAANGCode.gitcd faang_code
npm install # only the first time
npm startNote: If you get a babel error:
del package-lock.json
rm -rf node_modules # press Y if prompted
npm installcd faang_code/backend
npm startNotes if errors occur:
-
For nodemon error in
faang_code:npm install npm install nodemon --save-dev
-
For babel error:
npm ls babel-loader
-
Go to Gemini API Developer Kit and request a key.
-
Add the key to:
faang_code/public/background/background.jsin theGeminiAPIfunction. -
Build the project:
cd faang_code
npm run build-
In Google Chrome, go to:
chrome://extensions/ -
Click "Load unpacked" and select the folder:
FAANGCode/faang_code/public
Note: You may need to toggle Developer mode (top right corner). If code has changed since original download click "Reload" to update.
Now, when visiting a LeetCode problem, you can open the extension and have it analyze your code.
Happy coding!