This is a task record system created by Coleen Calma, Von Divino, and Reamonn Lois Domingo as a final requirement for CMSC 127: File Processing and Database Systems.
- Open your MariaDB interpreter.
- Inside MariaDB, enter
source ./sql/seed.sql
to seed the database.
- At the root of your project directory, create a file name
.env
. Copy paste the code below:
USERNAME=
PASSWORD=
DATABASE=awesome_todo
SERVER_PORT=8000
CLIENT_PORT=3000
SECRET_KEY=2zyalxwXbyaZVoXqoXGUKJXBVQANzBo3
PORT=3306
- Make sure to enter your
USERNAME
andPASSWORD
credentials for your database. For theSECRET_KEY
, you can just leave it like that or enter your own key.
- Create a project environment by using this command
python3 -m venv ./venv
. This will create a new Python environment for you. You can skip this step if you want to directly run in your global Python environment. - Every now and then, when working in the project, activate the environment by typing
./venv/Scripts/activate
. If you are in WSL/Linux, prepend thesource
command. If succesfully done, you should see a new prompt prepended with(venv)
. - Install the latest dependencies by typing the command
pip install -r requirements.txt
. - If you encountered error on Python Mariadb Connection, you may want to visit this page.
- Run server using this command
python .\server\index.py
.
- Go to client using this command
cd client
. - Install dependencies
npm install
. - Start the client
npm run dev
.