This project has been generated using the express
for back end integration, vite-typescript
for front end integration
Depending on your preferred package manager, follow the instructions below to deploy your project.
Requirements: NodeJS
18
. If you're using nvm, runnvm use
to ensure you're using the same Node version in local and in your lambda's runtime.
- Run
npm i
to install the project dependencies
- Run
yarn
to install the project dependencies
This code base does not use any API since we are sending event through SocketIO. Please refer to this:
- http://18.136.210.152:4173/client: for two buttons code frontend
- http://18.136.210.152:4173/dashboard: to see the changes made by the client
In order to test the function locally, run the following command:
npm run dev
if you're using NPMyarn dev
if you're using Yarn
The project code base is mainly located within the src
folder. This folder is divided in:
index.ts
: bootstrapping the whole application in typescript. The file will be built into Javascript in thedist
folder .
├── dist
│ ├── index.js
├── src
│ ├── index.ts
├── package.json
├── tsconfig.json # Typescript compiler configuration
├── tsconfig.paths.json # Typescript paths
- Socket.IO - using socket.io for communication between client and the dashboard as the backend act as a middleman
- vite - using to build React application
- express - using to build the backend
- PORT (Backend)