Coder Social home page Coder Social logo

bookhub's Introduction

BookHub

I took a class at my college called Software Systems & Analysis. Throughout the semester, you and your group go through the Software Development Life Cycle to design a "system." The group I was a part of designed an application where college students can resell their used textbooks and other related academic materials to other students on their campus.

Since it's not a programming class, there is no requirement to build a functioning version of your application. However, since I had the knowledge and experience, I decided to build a working version of our application just for kicks.

How It Works

This is a relatively simple application. The client is a progressive web app (PWA) and the server is written in C#. The server and client talk to each other, data is cached and subsequently saved in a database, and it pulls information about the textbooks from the Google Books API based soley from the ISBN. The one major thing both sides lack is encryption, however, I wanted to make sure things were in plain text for easy demonstration for the class.

The server caches the data it receives from the client in objects stored in collections in RAM, and then saves the data to a Mongo database every two minutes. This is done to prevent the server from making queries to the external database every time the client makes a change.

I made sure to meticulously comment and document the code so that anyone can learn from it and understand my rationale for why I did things certain ways.

Setup

To setup the project, you will need:

To build the server, run the following commands:

git clone https://github.com/kylecourounis/BookHub.git && cd BookHub/BookHub.Server
dotnet publish "BookHub.Server.csproj" -c Release -o app

When you download and run the installer for MongoDB, make sure to check the box in the installer that tells it to install MongoDB Compass. MongoDB Compass is the GUI for MongoDB. Then, open MongoDB Compass and create a database called BookHub. The server will automatically create the collections on its first run.

To make the client work properly, you'll need to install XAMPP Server and place the BookHub.Client directory inside the htdocs folder in your XAMPP installation location.

Then start the server and navigate to localhost/BookHub.Client in your browser or your your.local.IP.address/BookHub.Client on your phone, and it should serve the page.

bookhub's People

Contributors

kylecourounis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.