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

Implements both the user and game databases #15

Merged
merged 34 commits into from
Nov 28, 2021
Merged

Conversation

kylechui
Copy link
Collaborator

The user information should be stored in a database called user_info.db, which includes usernames, passwords, about me's, etc. The game information is stored in games.db, and contains various attributes about the games.

kylechui and others added 24 commits November 20, 2021 20:26
Introduces a lot of files/code from Mozilla's Express tutorial, with the
goal of having easily configurable layouts for game description pages.

Tutorial:
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Express_Nodejs/skeleton_website
Delete all old files, ignoring database code for now. Implements a basic
homepage that has a search button and input field.
Implements linking between `Homepage.js` and `Gamepage.js` using the
button.
Also added button to go to the login page.
Added `databases/` to store the user data, `servers/` to modularize
running the backend servers. Miscellaneous other files have been updated
to reflect the changes.
Creates two new files in `src/` that define how the login page looks,
and a third in a new `servers/` folder that dictates how to query the
`user_info.db` database. Unlike previous front-end files,
`src/Loginpage.js` is class based, and is an extension of React's
`Component` class. See the file for more details.
Updates `README.md` to reflect the changes.
Rewrite all of the `src/` webpages to follow the same object-oriented
coding principles that `src/Loginpage.js` has, as well as convert most
variables to lowercase.
* Add games database.

* Update `games.db` to follow proper formatting.

* Move database code out of `servers/`.

Only one `.js` file is needed to maintain all databases, so
`start_db.js` will suffice. Logic is now added such that the homepage
search bar actually queries the games database, and outputs to console.

TODO: Implement some sort of fuzzy matching for searching, as it
currently only accepts case-sensitive substrings as search queries.

* Update `README.md` to reflect most recent changes.

Also adds TODO items that will need to be implemented later.
@kylechui kylechui added backend Database and backend-facing features enhancement New feature or request frontend Page layouts and user-facing features labels Nov 25, 2021
@kylechui kylechui linked an issue Nov 25, 2021 that may be closed by this pull request
kylechui and others added 7 commits November 25, 2021 14:23
Updates the command for starting up the local database servers, now that
`servers/` has been deprecated.
* Configured import statements in every file

* Deleted random files, started working on homepage

* Configured react-boostrap to gamepages

* Configured navigation bar

* Finished Gamepage outline

* Cleaned up code added comments for everything
Updates various files for bug fixes, rewrites code to be more
object-oriented, and updates some code blocks for more consistent style.
Front-end pages should all be extensions of the react `Component` class,
and should use the `render()` method to display their contents.
jpaten and others added 3 commits November 27, 2021 16:00
Made a simple 3 column user page. Includes a section for the backlog, playthroughs, and friends list. Also includes the navbar at the top. Needs to be altered to use the database
Merge branch `reactPagesSimpleChanges` into the current branch. Adds
changes to the front-ends for `Gamepage.js` and `Homepage.js`, as well
as introduces new code that sets up the framework for `Userpage.js`.
Made the buttons on the home page properly spaced after that was lost in a merge
Switched to using an InputGroup for the navbar so the button integrates with the textbox, and changed search buttons to be consistently green.
This may have made some things off center but I can't tell, if you can please fix :)
@kylechui kylechui merged commit ecc632e into main Nov 28, 2021
@kylechui kylechui deleted the database-implementation branch November 28, 2021 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Database and backend-facing features enhancement New feature or request frontend Page layouts and user-facing features
Projects
None yet
3 participants