- First, install dependencies for the project.
npm install
# or
yarn
- (Optional) You can replace the AppID and ApiKey with your own, in **/utils/apiAuth.js.
const getAuthorizationHeader = () => {
// Get authorization header for MOTC API.
let AppID = {YOUR_APP_ID};
let ApiKey = {YOUR_API_KEY};
// ...
// ...
}
- Then, build the project and start the server:
npm run build
npm run start
# or
yarn build
yarn start
Open http://localhost:3000 with your browser to see the result.