If you have already done this challenge, there's a section below specifically for you.
The frontend challenge for this semester is to build a product called Penn Course Cart in React! The goal of this challenge is for you to demonstrate:
- An eye for building intuitive, feature-rich user interfaces
- Ability to build products with minimal direction
- Ability to work within a set timeline
More concretely, you will build an interface where users can explore computer science courses added at Penn, can add them to a cart, and checkout.
- Copy this repository to your own GitHub account by clicking the green "use this template" button. Make sure you create a private repository
- You'll have to make a GitHub account if you don't already have one 😛
- Clone the repository you just made to your own computer:
git clone [email protected]:{USERNAME}/frontend-challenge.git
- Make sure that you have Node installed
cd
into the cloned directory and run eitheryarn
ornpm install
- Run
yarn start
ornpm run dev
public/
index.html Root HTML file for each page
src/ Where the JS logic is
components/ Contains all React components
Cart.js Basic component for the course cart
Courses.js Basic component for rendering courses
Nav.js Basic component for the navbar
... Feel free to add other components
data/ Contains data rendered by the components
courses.json Contains information on CIS courses at Penn
App.css CSS for the app
App.js Root component for the app
index.js Renders the React app
...
-
Explore courses
- If you view
src/components/Courses.js
, you'll see that it is rendering some of the courses data fromsrc/data/courses.json
- What you need to do is design a more robust way to display this courses information. You should display all information contained in the JSON--though put some thought into how to go about doing this.
- For example, you might only want to show the description once the user clicks on the course.
- If you view
-
Add courses to your cart
- A user should be able to add a subset of these courses to their cart.
- The user should not be able to add more than 7 courses to their cart.
- When a user adds a course, this addition should be reflected in:
- How that cart is rendered
- How that course is rendered
- For example, there should not still be a button to add that course to the cart, and maybe the text should be grayed out.
- A user should be able to add a subset of these courses to their cart.
-
View cart and checkout
- The user should be able to click a button to view their cart.
- If the cart has no items in it, tell the user that their cart is empty.
- If the cart has courses it in, display the courses and relevant information about them.
- When the user is satisfied with their course cart, they should be able to "checkout"
- This will either take the user to a new page containing (or will display on the same page) a "receipt" containing the courses which they checked out with.
- The user should be able to click a button to view their cart.
-
Additional features
- Feel free to add other features as well! Here are some ideas:
- Big bonus if you integrate other data (course times, when they're offered, etc.)
- A great resource is the Penn Labs API
fetch(https://api.pennlabs.org/registrar/search?q=cis-110)
- A great resource is the Penn Labs API
- Add animations for adding and viewing courses and the cart
- Let users rank courses in order of preference
- Take advantage of a linter
- Allow users to filter and sort courses by different metrics
- Big bonus if you integrate other data (course times, when they're offered, etc.)
- Feel free to add other features as well! Here are some ideas:
-
For styling, use whatever you want:
- CSS frameworks (Bulma, Bootstrap)
- CSS files (or SCSS)
- CSS-in-JS
styled-components
- ...
-
For state management:
- Vanilla react state and props
- Redux
- ...
-
For navigation:
- React Router
- ...
If you have any questions about the project or need some help, send an email to Daniel Tao ([email protected]).
First off, thanks so much for your continued interest in Labs. We've accomplished a lot in the past year and have plans for more great products and features which need new developers to tackle them—so fingers crossed!
At Labs we don't just build new products, we also maintain legacy code bases and year over year push out new and improved versions. Penn Course Review and the Common Funding Application are two great examples.
In line with this, we want you to take your submission from when you last applied, clean up your code, and take it to the next level with new features and data. Be deliberate with your implementation decisions, architecture, and documentation such that if someone else opens your code 6 months from now they'll be able to pick up right where you left off. We're excited to see what you come up with.
Follow the instructions on the Technical Challenge page for submission.