Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .glitch-assets
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{"name":"drag-in-files.svg","date":"2016-10-22T16:17:49.954Z","url":"https://cdn.hyperdev.com/drag-in-files.svg","type":"image/svg","size":7646,"imageWidth":276,"imageHeight":276,"thumbnail":"https://cdn.hyperdev.com/drag-in-files.svg","thumbnailWidth":276,"thumbnailHeight":276,"dominantColor":"rgb(102, 153, 205)","uuid":"adSBq97hhhpFNUna"}
{"name":"click-me.svg","date":"2016-10-23T16:17:49.954Z","url":"https://cdn.hyperdev.com/click-me.svg","type":"image/svg","size":7116,"imageWidth":276,"imageHeight":276,"thumbnail":"https://cdn.hyperdev.com/click-me.svg","thumbnailWidth":276,"thumbnailHeight":276,"dominantColor":"rgb(243, 185, 186)","uuid":"adSBq97hhhpFNUnb"}
{"name":"paste-me.svg","date":"2016-10-24T16:17:49.954Z","url":"https://cdn.hyperdev.com/paste-me.svg","type":"image/svg","size":7242,"imageWidth":276,"imageHeight":276,"thumbnail":"https://cdn.hyperdev.com/paste-me.svg","thumbnailWidth":276,"thumbnailHeight":276,"dominantColor":"rgb(42, 179, 185)","uuid":"adSBq97hhhpFNUnc"}
{"uuid":"adSBq97hhhpFNUna","deleted":true}
{"uuid":"adSBq97hhhpFNUnb","deleted":true}
{"uuid":"adSBq97hhhpFNUnc","deleted":true}
{"name":"favicon.ico","date":"2020-09-26T23:46:06.476Z","url":"https://cdn.glitch.com/7ca9d52c-b484-49ff-9461-fd0af9fec6a6%2Ffavicon.ico","type":"image/x-icon","size":1150,"imageWidth":16,"imageHeight":16,"thumbnail":"https://cdn.glitch.com/7ca9d52c-b484-49ff-9461-fd0af9fec6a6%2Ffavicon.ico","thumbnailWidth":16,"thumbnailHeight":16,"uuid":"BeAaWcL61gSyBJ3M"}
{"uuid":"BeAaWcL61gSyBJ3M","deleted":true}
{"name":"favicon.ico","date":"2020-09-26T23:46:50.476Z","url":"https://cdn.glitch.com/7ca9d52c-b484-49ff-9461-fd0af9fec6a6%2Ffavicon.ico","type":"image/x-icon","size":1150,"imageWidth":16,"imageHeight":16,"thumbnail":"https://cdn.glitch.com/7ca9d52c-b484-49ff-9461-fd0af9fec6a6%2Ffavicon.ico","thumbnailWidth":16,"thumbnailHeight":16,"uuid":"BAnENzx8La2OqvCD"}
{"name":"dcc759c3-d0bd-4467-876b-9337ebba87a7.image.png","date":"2020-09-28T16:00:17.900Z","url":"https://cdn.glitch.com/7ca9d52c-b484-49ff-9461-fd0af9fec6a6%2Fdcc759c3-d0bd-4467-876b-9337ebba87a7.image.png","type":"image/png","size":19631,"imageWidth":550,"imageHeight":199,"thumbnail":"https://cdn.glitch.com/7ca9d52c-b484-49ff-9461-fd0af9fec6a6%2Fthumbnails%2Fdcc759c3-d0bd-4467-876b-9337ebba87a7.image.png","thumbnailWidth":330,"thumbnailHeight":120,"uuid":"SHKmjAOcGCYoMsJ6"}
{"uuid":"SHKmjAOcGCYoMsJ6","deleted":true}
37 changes: 14 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
Assignment 4 - Components
===
## Simple To-Do Page

Due: October 11th, by 11:59 PM.
[https://a4-brad-cosma.glitch.me/](https://a4-brad-cosma.glitch.me/)

For this assignment you will re-implement the client side portion of A3 using either React or Svelte components.
You can use this account to test the site:

This project can be implemented on any hosting service (Glitch, DigitalOcean, Heroku etc.), however, you must include all files in your GitHub repo so that the course staff can view them; these files are not available for viewing in many hosting systems.
Username: test

Deliverables
---
Password: test

Do the following to complete this assignment:
This app is still a generic todo list, with a simple style. You can only add, edit
and delete. No looking back, get that task over with and move on!

1. Implement your project with the above requirements.
3. Test your project to make sure that when someone goes to your main page on Glitch/Heroku/etc., it displays correctly.
4. Ensure that your project has the proper naming scheme `a4-firstname-lastname` so we can find it.
5. Fork this repository and modify the README to the specifications below. Be sure to add *all* project files.
6. Create and submit a Pull Request to the original repo. Name the pull request using the following template: `a4-firstname-lastname`.
**Changes from A3**:
The app now uses React for its main page instead of the more cumbersome simple js/jquerry/html
from before. The use of react initially was very confusing, setting it up didn't go as planned
and it took a while to figure out what exactly I needed to do to even start using it. It turned
out to be very simple, thanks to React's official "Add React to a Website" tutorial. In the end,
I can see clearly how using react makes desiging and maintaining interfaces much easier thanks to
its modularity and ability to contain each thing in its own file.

Sample Readme (delete the above when you're ready to submit, and modify the below so with your links and descriptions)
---

## Your Web Application Title

your hosting link e.g. http://a4-charlieroberts.glitch.me

Include a very brief summary of your project here and what you changed / added to assignment #3. Briefly (3–4 sentences) answer the following question: did the new technology improve or hinder the development experience?

Unlike previous assignments, this assignment will be solely graded on whether or not you successfully complete it. Partial credit will be generously given.
34 changes: 34 additions & 0 deletions outline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
**The general idea:**
- Insert the data into list items, just like the basic site
- Each user has their own doccument, with their entries represented as an array? seems easy if mongodb can handle that.

**Structure:**
- Main page:
- Entry form
- List
- Link to logout?
- redirects people to login if they're not logged in (use cookies to tell?)
- Grabs the existing data for a logged in user and puts it in the list
- deletion/editing/adding of list items
- Login page:
- form to enter username or password
- link to register page
- some method of reporting that you failed to log in? or just redirect back to login page lol thats easier ig
- Register page:
- form for username and password
- needs to have some way to tell you the account already exists

**TODO Next:**
- ~~Finish registration function, sending back a token to report error for user existing~~ DONE
- ~~If the user doesnt exist, registration creates a doc for them and sends the user to the main page~~ DONE
- ~~Registration page responds to the "result" field of the returned json~~ DONE
- ~~Main page detects if people are logged in or not, sends to login if not (using cookies?)~~ DONE
- ~~Login page needs to check things~~ DONE
- ~~Grab uname, pw, send to server~~ DONE
- ~~Server responds to login page with a sucess or fail~~ DONE
- ~~on fail, login page continues~~ DONE
- ~~on success, login pages sends you back to the main page~~ DONE
- ~~convert data storage to store in people's docs rather than each entry being its own doc~~ DONE
- ~~Deleting needs to look through the array in peoples doc~~ DONE
- ~~Editing needs to do the same~~ DONE
- ~~CSS Framework and manual styling~~ DONE
Loading