Smart Host Coding Challenge

I built a room occupancy optimization tool as a React component.

Project is hosted on the Vercel - https://smart-host.vercel.app/

I used the Next.js framework for two reasons:

  1. It allows to use React.
  2. I can use Vercel as a hosting platform easily.

Source code is written in TypeScript. Design is implemented using Tailwind.

Getting Started

Requirements

  • Node.js 16.8 or later

Installation

npm ci

To verify installation, build app and run unit tests.

npm run build && npm run test:ci

Running app

You can run app on your local machine using dev script.

npm run dev

Available Scripts

Running app in the dev environment.

npm run dev

Building the application.

npm run build

Starting app. Do not forget to build the application.

npm start

Running unit tests in the watch mode.

npm test

Running tests once.

npm run test:ci

Lint projects source code.

npm run lint

Format source code with Prettier.

npm run format

Start Storybook server.

npm run storybook

Future Improvements

  • Add CI/CD to the project
  • Prepare Styled Components
  • Add Sentry