Built for the hiring process for TransportCanada IT-02 Process # 20-MOT-EA-HRS-98277-2
- Node.js version 16.14.1
- NPM 8.5.0 (should be included with Node.js)
- Server should have an internet connection to install the NPM package
- Extract the whole directory anywhere on your machine
- Make sure executables have read & write access
- Open a terminal or command prompt and navigate to the inside of said directory (
- For example if you put it under C:\ and kept the name of the directory, you would navigate to C:\tcit02api2 (on windows you would
cd C:\\tcit02api2
)
- For example if you put it under C:\ and kept the name of the directory, you would navigate to C:\tcit02api2 (on windows you would
- From the terminal/command prompt, type
npm install
and wait until it installs everything it needs - From the same terminal type
npm start
- API2 is active, leave the terminal open to let it run
- You can access the GET request in a browser by going to http://localhost:3002/api2
- You must POST first otherwise it will return status HTTP response status code 204 No Content
Written by @GuillaumeHoude