The following is a guide covering the installation, setup and deployment of the Syllabi Savers application. The stack of the application is as follows.
- ReactJS
- ExpressJS
- NodeJS
- SQLite3
Most of the dependencies for this application are already integrated into the different node modules when the application is cloned onto the filesystem. However, nodejs must be available on the computer in order to run correctly.
- Install the current LTS edition of NodeJS if not currently installed.
- Run
node -v
in cmd or powershell on Windows (or in Terminal on macOS) to verify nodejs is installed properly.
- Windows: download the 64-bit DLL
- macOS: download sqlite-tools
- Expand the .zip and open folder.
- Move executables to
2021-2022-Capstone-DB/db
- Windows: executables are
sqlite3.def
andsqlite3.dll
- macOS: executables are
sqldiff
,sqlite3
, andsqlite3_analyzer
- Navigate to the
src
directory within2021-2022-Capstone-DB
. - In a usual React application
npm install
would be used to install dependencies withinnode_modules
. If there are dependency issues, you may need to manually delete thenode_modules
folder and runnpm install
inroot
. - Navigate to the
src
directory withcd src
and runnpm run build
. This will help build node within the filesystem.
- Navigate to
root
or../2021-2022-Capstone-DB
. - Running
npm run dev
will run both the React application and the backend server.
- When running on your local machine, the application will be located on
http://localhost:3000/
- Note: that when you run the program for the first time, the application will open in the system default browser
- To close the application, navigate back to the terminal used to open the application and enter
CTRL+C
to end the task.- An alternative is opening
Task Manager
, and locating the taskReact
and manually ending that task.
- An alternative is opening
We did not include a database with the source code, so a new one is created at first launch. This database will remain empty until a course is added from the Create page.