Building the Frontend - Project Setup and Configuration

Configuring a New React Project with Vite.

Before we proceed, I want to mention that this section of the tutorial is entirely optional. We'll be developing our application using React, so it's assumed that you have some familiarity with it, as we won't be covering it in detail. Developing in React is not mandatory; you can choose whether to use it or implement these concepts with the framework you prefer.

Project Setup

Let's begin our journey. Open WebStorm.

Click —> Vite —> Choose Template as react and provide a name to your project. I am going with bedrock_ui. Once done, click Create.

Vite is a next-generation frontend tooling developed by Evan You, the author of Vue.js. It aims to provide a faster and more efficient development experience compared to older tools like Create React App.

step1

You will observe a popup appearing at the right bottom to Install dependencies. Go ahead and click Run 'npm install'.

step2

All packages are installed. Let's go ahead and start the server.

step3

Click on ▶️ to run the server.

step4

The application is running on localhost:5173.

step5

This is how the default UI appears when you load it for the first time.

step6

Installing Packages

Bulma

Modern CSS Framework

step7

React Icons

Include popular icons in your React projects easily with react-icons.

step8

react-typed

A React wrapper for typed.js

step9

Open package.json and add the following lines under the dependencies. After completing the changes, save them, and WebStorm will prompt you to install the necessary packages.

step10

The next section is quite important as we completely focus on building the application.