Skip to content

"Responsive Menu Bar" is a responsive menu component made in React JS. This project is made in order to complete one of the recruitment stage of Zero One Technology Indonesia.

Notifications You must be signed in to change notification settings

alifsiregar/responsive-menu-bar

Repository files navigation

Responsive Menu Bar

"Responsive Menu Bar" is a responsive menu component made in React JS. This project is made in order to complete one of the recruitment stage of Zero One Technology Indonesia.

Tech Stack

  • React JS
  • Typescript
  • Styled-Components
  • React Router

Structure

Most of the important folders and files are inside the src folder. Inside, you will find 4 files:

  1. App.tsx
  2. index.tsx
  3. routes.tsx
  4. styles.ts

App.tsx is the root file where all the components are placed. routes.tsx is where the routes are placed, and styles.ts is the file for global styles.

Aside from the files, you will also find 3 folders:

  1. components
  2. assets
  3. pages

All of the pages are stored in pages. Inside, there is an index.ts where all the pages are exported to make importing pages easier in other components. assets folder contains the asset used in this project, and components is where the component is placed. There is also a __test__ folder inside the components folder which has the test scenario for the project.

Deployment and Workflow

This project is deployed to github pages and can be accessed here. The workflow consists of 4 steps:

  1. Install Dependencies
  2. Run Test
  3. Run ESLint
  4. Build Project
  5. Deploy Project

To deploy the project, I am using JamesIves's Github Pages Deploy Action.

Documentation

In order to start the app in development mode, you can run this syntax in the project directory:

npm start

By default, the app will open in http://localhost:3000. The page also has hot reload, which means that it will refresh if you make any edits.

If you want to build the app for production, you can run this syntax in the project directory:

npm run build

This will bundle the React in production mode and optimizes the build for the best performance.

The build is then minified and the app is ready to be deployed!

About

"Responsive Menu Bar" is a responsive menu component made in React JS. This project is made in order to complete one of the recruitment stage of Zero One Technology Indonesia.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published