GaryPlanner is a web application designed to assist UCSD students in long-term academic planning by generating a suggested four year plan of all classes that the user still has to enroll in to graduate.
https://www.youtube.com/watch?v=AetrEdn_Tm4&t=30s
Install Docker from https://www.docker.com/get-started
Install Node from https://nodejs.org/en/
npm -v: 6.14.8 and above
node -v: 14.15.1 and above
git clone the repo by https://github.com/j3li/GaryPlanner.git
Open the project in a terminal: cd GaryPlanner
In your terminal type:
cd back_end
docker-compose up --build
Wait for the installation happens and the terminal is printing "Running on....."
If the above step has an error message: "Error: cannot start service mounts denied file not found", open the docker desktop, go to preference, go to experimental features, switch off Use gRPC FUSE for file sharing.
If the above step says back_end_web_1 exited with error code 1, you need to change the encoding of entrypoint.sh from CRLF to LF. You do this by open up /back_end/entrypoint.sh in VSCode, go to the bottom right of the screen, select CRLF, and change it to LF. (That is usually only a problem for Windows).
Open another terminal, go the project, type
cd back_end
cat data_dump.sql | docker exec -i back_end_db_1 psql -U gary_planner -d gary_planner_db
This will prepopulate the database.
If it shows invalid byte sequence error message, change the data_dump.sql file to utf-8. (This can be done via open the file in VSCode, clicking the encoding on the bottom right corner, and choosing utf-8). And then rerun the above commend again.
Ignore all the other error messages.
Once the population is over, this terminal is no longer needed.
Open another terminal and navigate to the project.
In your terminal, type:
cd ..
cd front-end
npm install
npm run dev
Wait for the frontend to be compiled, and open up a new tab in chrome and go to http://localhost:3000.
We will divide into frontend and backend, please refer the readme in differnt dir for guidence.
