# 1.P: Frontend App

## Introduction

Build an Application that solves a problem you have using React, HTML and CSS. We will not be able to persist data in database until Module 2, but there are still many useful apps we can build. If you want to try to create an Application with a rudimentary database please look at HTML's [localStorage](https://developer.mozilla.org/en-US/docs/Web/API/Window/localStorage) where we can manage JSON within our React Application.&#x20;

## Requirements

### App Stack

This project must be a Frontend React Application that utilises React, HTML and CSS.

### User Interface

* [ ] The user interface of the Application is consistently styled across all components and screens
* [ ] The Application is intuitive, usable and easy to navigate
* [ ] Application has been styled with superb custom CSS, [React Bootstrap](https://react-bootstrap.github.io/components/alerts), [MUI](https://mui.com/core/) or another component UI or CSS framework

### Functionality&#x20;

* [ ] The core functionalities of the application work as intended and expected
* [ ] The Application handles props effectively across components
* [ ] The Application manages and updates state effectively
* [ ] Interactivity:
  * [ ] The Application contains at least 1 input that captures user input to alter Application state&#x20;
  * [ ] The Application contains at least 1 call to action that alters Applications state
  * [ ] The Application can reflected updated state in the UI
* [ ] Complexity:
  * [ ] Application has at least 2 levels of components eg: \
    App component and 1 or more child components
  * [ ] Application demonstrates the capability to lift up state

### Code Quality

* [ ] Application is organised as well as structured, it follows practices of component separation and has a good folder structure
* [ ] The code is easy to comprehend and read
* [ ] The Application contains meaningful variable and function names
* [ ] Application contains components that can be reused
* [ ] The Application preforms well without unwarranted rendering
* [ ] The Application's code follows consistent coding conventions, regarding indentations and formatting
* [ ] The Application follows the correct naming, casing and commenting [best practices](https://bc.rocketacademy.co/general-reference/naming-casing-and-commenting-conventions)

### Project Management&#x20;

* [ ] Application has been deployed with [GitHub Pages](https://create-react-app.dev/docs/deployment/#github-pages)
* [ ] Git repository contains commits for each feature with descriptive commit messages
* [ ] Application contains a README with the applications description, user stories and low-fidelity wireframes
* [ ] The README contains instructions on how to run the Application&#x20;

## Ideas

The best ideas are ones that solve our own problems. Since we cannot persist data until Module 2, consider apps that do not require us to store data beyond the current session. For example: games, calculators, guitar tuners, colour matchers, visualisers. Games may be the most engaging to implement because they typically require more logic. Consult your section leader if you are struggling to decide on an idea.

## Timeline

You will have roughly 4 course days to implement and complete this project. We will observe the following timeline to keep us on track.

| Project Day | Checkpoint                                                                                                                                                                                                                        | Feedback                                                                                                                                             |
| :---------: | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------- |
|      1      | <p><strong>Ideation phase 1</strong></p><p>Post project ideas in Slack for feedback</p>                                                                                                                                           | SL to review ideas and share feedback                                                                                                                |
|      2      | <p><strong>Ideation phase 2</strong><br>Create planning docs: user stories, wireframes, kanban board</p>                                                                                                                          | SL to review planning docs and share feedback                                                                                                        |
|      3      | **Start implementation**                                                                                                                                                                                                          | -                                                                                                                                                    |
|      4      | -                                                                                                                                                                                                                                 | -                                                                                                                                                    |
|      5      | <p><strong>MVP deadline</strong><br>Users can complete the primary user story</p>                                                                                                                                                 | SL to review code in GitHub, share feedback                                                                                                          |
|      6      | <p><strong>Feature freeze</strong></p><p>No new features, focus on polishing existing features and code to be presentable</p>                                                                                                     | SL to review progress and share post-feature-freeze suggestions                                                                                      |
|      7      | <p><strong>Project presentations</strong></p><p>Practise <a href="../../logistics/course-methodology#presentations">explaining your work</a> to others. Other batches will join and we will celebrate each others' hard work.</p> | SL to review code in GitHub, share feedback in 30-minute [post-mortem meeting](https://bc.rocketacademy.co/logistics/course-methodology#post-mortem) |
|      8      | <p><strong>Demo video</strong><br>Record a <a href="../../logistics/course-methodology#demo-video">demo video</a> for employers and the public, embed in README</p>                                                               | -                                                                                                                                                    |

## Project Management Suggestions

Rocket recommends the following project management strategies and tools for all projects.

### User Stories

Start with user stories. Who is our user and what is their [job to be done](https://hbr.org/2016/09/know-your-customers-jobs-to-be-done)? Be as specific as possible. After we articulate user stories we can proceed to design our app.

Example user stories for Project 1:

* An interior designer wants to determine whether 2 or more colours match and what an optimal colour palette might be for given a base colour
* A daily commuter wishes to play Flappy Bird during his 30-minute commute
* A couple wishes to play a game of checkers against each other on their shared computer

Above user stories may not require persisting user data beyond the current session. From Project 2 onward we will learn how to persist user data for multiple users accessing our apps at multiple times on different devices.

### Wireframes

After user stories, create simple wireframes to visually describe how users accomplish user stories with our app. Connect wireframes to form [user flows](https://careerfoundry.com/en/blog/ux-design/what-are-user-flows/) for each user story. Only include what is needed to accomplish user stories, no more and no less. Rocket recommends [Figma](https://www.figma.com), a relatively simple and popular design tool.

[Here](https://www.figma.com/blog/how-to-wireframe/) is an introduction to wireframing with Figma. Rocket recommends only low-fidelity wireframes for our projects due to limited time. Below are example wireframes by Figma; we can create user flows by navigating to the Prototype tab in the right sidebar and adding connections between wireframes.

{% embed url="<https://www.figma.com/file/NkdUszMYMFqhMX31HGUH0o/Wireframing-in-Figma?node-id=0%3A1>" %}
Example wireframes by Figma
{% endembed %}

### Kanban Board

After user stories and wireframes, Rocket recommends using a [kanban board](https://blog.trello.com/kanban-data-nave) to track implementation progress. A kanban board is a progress-tracking board that contains broadly 3 lists of tasks: To Do, Doing and Done. Rocket recommends [Trello](https://trello.com) for its simplicity, and the [Trello Engineering Kanban Template](https://trello.com/templates/engineering/kanban-template-LGHXvZNL) for its relevance to SWE.

Each task on your board should take no more than 1 day to complete. If you think it will take longer than 1 day, break it down into smaller tasks. This will help you stay motivated and track progress more accurately. Move in-progress tasks to the Doing lists and completed tasks to Done.

## Setup

Start by forking [Rocket's Bootcamp Project 1 repo](https://github.com/rocketacademy/project1-3.2) that contains an empty Vitejs app. This will make it easier for SLs to review your code by allowing us to submit projects via pull requests.

## Deployment

If you would like to deploy your app to the internet, follow Vitejs GitHub Pages [deployment instructions here](https://vitejs.dev/guide/static-deploy.html) this should be familiar as we are already using GitHub for code hosting.

## Submission

1. Submit a pull request to Rocket's Project 1 repo
2. Add your Project 1 repo link to the Rocket Bootcamp Projects spreadsheet in your batch-specific sheet shared by your SL.&#x20;

## General Tips

### Mobile First

Rocket recommends designing and building the mobile version of your project before the desktop version. It will be easier to add features to a UI for the desktop version than to remove features from a UI for the mobile version. Use Chrome DevTools to [simulate smaller devices in Chrome](https://developer.chrome.com/docs/devtools/device-mode/).

### Polish

Leave sufficient time to polish your app to be presentable. Fewer, more-polished features are generally better than more, less-polished features. Below is a sample checklist to run through.

1. Are there obvious bugs?
2. Are variable names concise and precise?
3. Do we have [JSDoc comments](https://jsdoc.app/about-getting-started.html#adding-documentation-comments-to-your-code) above major functions and inline comments above code that could be confusing to others?
4. Is each function sufficiently small and modular to be easily readable?
5. Is the visual design clean?
6. Is the app layout responsive?
7. Did we update the app favicon and page title?
8. Did we populate the README?
