Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a5-jhyuen-joseph-yuen #91

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
USER=test
PASS=fantastic
HOST="cluster0-qa3kc.mongodb.net"
DB="hi?retryWrites=true&w=majority"
40 changes: 6 additions & 34 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,10 @@
Assignment 5 - Databases and/or Components
===
## Fantastic Fries with MongoDB

Due: October 7th, by 11:59 AM.
[http://a5-jhyuen-joseph-yuen.glitch.me](http://a5-jhyuen-joseph-yuen.glitch.me)

For this assignment you will complete one of the following tasks, based on your prior experience with the various technologies involved.
### Admin Account Details
Username: admin

1. Rework the server component from Assignment #3 to use MongoDB or some other NoSQL database (like CouchDB). You can remove Passport authentication if you choose, although this might be as much work as simply changing your Passport calls to use MongoDB.
2. Rework the client component from Assignment #3 to use Svelte in some capacity.
3. Rework the client component from Assignmeent #3 to use React in some capacity.
Password: fantastic

For 2 and 3, make sure to look at [the notes from lecture 10](https://github.com/cs4241-19a/materials/blob/master/lecture10.markdown).

This is really a chance for you to experiment with some additional web technologies that the prior assignments haven't covered yet: non-flatfile databases and web component frameworks.

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.

Deliverables
---

Do the following to complete this assignment:

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 `a5-yourname` 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: `a5-gitname-firstname-lastname`.

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://a5-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 hte folloiwn 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.
I replaced lowDB with MongoDB in assignment 3 using Mongoose. Basic functionality remains the same. Since I felt that lowDB was easier than MongoDB to implement, I felt somewhat that it hindered the development experience. However, once I got over the learning curve, the ability to change the database remotely definitely improved the development experience.
215 changes: 215 additions & 0 deletions db.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
{
"orders": [
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 48
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 64
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 67
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 79
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 81
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 82
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 83
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 84
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 85
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 86
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 87
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 88
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 89
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 90
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 91
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 92
},
{
"yourname": "Joe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 93
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 94
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 95
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 96
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 97
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 98
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 99
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 100
},
{
"yourname": "John Doe",
"phone": "123-456-7890",
"potato": "yellow",
"seasoning": "none",
"size": "small",
"ordernum": 101
}
],
"users": [
{
"username": "admin",
"password": "fantastic"
},
{
"username": "test",
"password": "grader"
}
],
"ordercount": 102
}
Loading