Calendar application with Natural Language Processing for event creation.
-
Install MySQL server. Instructions on how to do so can be found at:
https://dev.mysql.com/doc/mysql-installation-excerpt/5.5/en/installing.html -
Create a new user by logging into mysql as root user and run the following commands:
CREATE USER 'admin'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'username'@'localhost';
- Activate virtual environment
source venv/bin/activate
- Add Google credentials
export GOOGLE_APPLICATION_CREDENTIALS=./googlekey.json
- Install requirements
pip3 install -r requirements.txt
- Navigate to static folder and install npm dependencies
npm install
- Start the development watch server from the static folder
npm run watch
If you get an error here similar to npm WARN babel-loader@8.0.2 requires a peer of @babel/core@⁷.0.0 but none was installed., then you should downgrade your babel-loader to 7.x as follows:
npm install babel-loader@^7 --save-dev
- Initialise Database by running in the templates/code directory and following the prompts
python3 DatabaseManager.py
- Open a terminal at the root directory and start the python server
python3 run.py
- If you recieve error messages involving material-ui, run
npm install --save --save-dev @material-ui/core
- Login with the following username and password
username: zainab.a@email.com
password: password
