Referencing code in Tutorial2 for js/Node.js.
This project focuses on tracking data of celestial bodies like stars, planets, and moons. It models star and planetary systems with real-world statistics and provides simple visualizations for educational purposes.
Follow these steps to set up and run the project.
- Ensure you have access to the UBC server with your CWL ID and password.
- Make sure you have the project files and the
project.sql
file.
- Open the
.env
file in the project directory. - Change the database name and password to match your credentials. The password format should be
aStudentID
(e.g.,a12345678
).
- Use SCP to transfer the
project.sql
file to the server:scp project.sql [email protected]
- Use SSH to log in to the server:
- Access Oracle using SQL*Plus:
sqlplus ora_cwl_ID@stu
- Execute the SQL script:
start project.sql
- Navigate to the project directory:
cd ./project_f0q8k_g6d6m_q1p2n
- Run the server start script:
sh remote-start.sh
- Note the port number displayed in the message. For example:
Updated ./.env with PORT=50016. Server running at http://localhost:60000/ Connection pool started
- Remember the port number (e.g.,
60000
). If the message indicates that the port is already in use, editserver.js
at line 10 to change the port number (e.g.,50000
).
- Remember the port number (e.g.,
- Note the port number displayed in the message. For example:
- Navigate to the project directory on your local machine:
cd ./project_f0q8k_g6d6m_q1p2n
- Start the server tunnel:
sh ./scripts/mac/server-tunnel.sh
-
When prompted, enter the port number you remembered from step 6.
Enter your CWL name: [email protected]'s password:
- Open your browser and navigate to:
http://localhost:PORTNUM/
- After clicking the black hole, copy the black hole name and click the search button.
- Yellow stars will appear. Click on a yellow star to display additional information on the information board.
-
Muzhi Li
-
Haocheng Fan
-
Sky Huang