Skip to content

cjackie/studentMarket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

##A Website For Exchanging Books

    Every beginning of semesters, students on campus are looking to buy textbooks. Some of them search online for best bargin, which is time consuming. Some of them browse through facebook page, which is tedious and annoying. too much unorganized infromation. Or some of them go to bookstore on campus, which , we all know, are super expensive. At the same time, they have their own books from previous semesters.
    So why not create a website, our own WEBSITE exclusive for SBU, to exchange books on campus. You can buy books from other students, and sell your old textbooks easily. It's going to be OPEN SOURCE.


### Ways to Contribute
  • suggest new feature and write codes
  • report bugs
  • fix bugs

### Design The design follows MVC design paradigm:
    I use Jade, MongoDB and Express.
    app.js is the script that handle all url requests, then call corresponding modules.It's the Control.
    routes is the folder contains scripts that act as a middleware between Model, Control,and View. These scripts contain modules that will be called in app.js, where they handle users requests and render views if necessary. It also has a models folder, which is the Model, where provide modules to interact with database.
    Views is the folder contains views... obviously..
    Public folder contains relevent CSS, Javascript, img, and so on, which support rendering of a view. They are exposed to clients.
    node_modules folder.. We don't need to worry about it. It just contains all dependencies. For example express, mongodb, mongoose and jade.

### Architecture

flowchart



### Install Locally

To install do the following:

  1. Get the code

     https://github.com/cjackie/studentMarket.git
    
  2. Install node dependencies

     cd studentMarket
     npm install .
    
  3. Run the app

     node run.js
    
  4. Should now be running at http://localhost:3000


### Test Accounts

I have created several test accounts for those of you don'have stony brook email, but want to try out the website:
username: test1
password: 123456
username: test2
password: 123456

About

A website for Stony Brook University

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published