- Created an application for employees to inquire about store information such as sales, wages, work scheduling, and inventory.
- Provided a database where new information about the store could be updated in real time such as item purchases, sales, and stock delivery.
- Constructed an easy to use interface to allow the manager to quickly determine certain information such as "highest sales this week" and "find the date of a transaction".
Technologies Used:
- TypeScript
- HTML
- CSS
- SQL
Setting up Windows (run everything in Windows CMD):
- Install Node.js from the Node.js website
- At the project root directory, run
yarn clean
yarn install
npm --add-python-to-path='true' --debug install --global windows-build-tools
(may take some time)npm install instantclient
- Move the instantclient from the project root directory to
C:\oracle\
- Add
C:\oracle\instantclient
to PATHs by editing system environment variables - Run
npm install oracledb
- Alternatively for steps 3 and 4, run the following at the project root directory (must be done everytime)
- set
PATH=%cd%\instantclient;%PATH%
- set
OCI_LIB_DIR=%cd%\instantclient\sdk\lib\msvc
- set
OCI_INC_DIR=%cd%\instantclient\sdk\include
- set
- Optionally run (to stop Webstorm warnings)
npm install --save @types/jquery
Connecting remotely to UBC's server and running the local Node server:
- Set up a tunnel on a LINUX shell (XXXX is your CS ID):
ssh -l XXXX -L localhost:1522:dbhost.ugrad.cs.ubc.ca:1522 remote.ugrad.cs.ubc.ca
If the above fails (due to IPv6 bug), try the following:ssh -l XXXX -L 127.0.0.1:1522:dbhost.ugrad.cs.ubc.ca:1522 remote.ugrad.cs.ubc.ca
- On Windows CMD at the project root, run
npm start
(to start server)ctrl+c
(to stop server)
- On your web browser, go to "localhost:4321"
Changing DateFormat: Set the following environment variables:
- set
NLS_LANG ='American_America.UTF8'
- set
NLS_DATE_FORMAT='YYYY-MON-DD'