CS 268: Project 2 – React App
In the second project of this course, you will create a web app that consumes a web service using several tools from the Node.js ecosystem, including React, Redux, and Express.
Your app must meet the following expectations:
- You will create an app that has a coherent purpose. Its content must be original and satisfy a personal creative itch.
- You may work with a partner or as an individual.
- Your app will have both a back-end data store and web service and a front-end client.
- You will create a front-end client using React’s functional components and hooks. (Do not use classes for making components.)
- The content of your client must change dynamically as the user interacts with it. (Sites with static content really should not be written with React.)
- You will manage state in your client using Redux.
- You will access your web service from your client using your own calls to
fetch and not through any helper library.
- Your client must be free from all warnings and errors.
- Your front-end client must be stored in a Git repository that you have shared with your instructor. On GitHub, GitLab, and Bitbucket, share with the user
- Your front-end client must be deployed through a custom domain name through HTTPS over port 443. You can serve it with Apache much like you serve out project 1 and your blog. But do not include the
Listen 443 line in your virtual host configuration file. This line is already included in another configuration file, and including it twice will result in an error.
- If visitors access your client through port 80, they must be redirected automatically to port 443.
- Your app will store its data long-term in a database—preferably MySQL, but you may petition for something else.
- You will indicate asynchronous activity to the user via the GUI. For example, while a fetch executes, you will show a progress wheel.
- You will provide an Express-based web service for interacting with the database. The service must only be directly accessible from your droplet, and not from outside. Use
ufw to block all ports but the ones you need for SSH and your allowed web servers.
- Your web service must be started using a process manager like
pm2 so that it stays running.
- You will create an Nginx server that allows global, encrypted access to your web service.
- Your back-end must be stored in a separate Git repository that you have shared with your instructor. On GitHub, GitLab, and Bitbucket, share with the user
By the due date, share in a direct message on Slack a brief but itemized breakdown of how you believe you have met the expectations listed above.