Skip to content

LeonYTL/sfubuy

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SFUBUY

Description

This is a used textbook trading site for students. The main functions include user registration and login, product upload, administrator filtering products, database storage.

Installation requirements

  • Java IDE (Eclipse the best)
  • Tomcat 8.5
  • JDK 1.8.0
  • MYSQL (newest version)
  • Navicat (not required, but can easily manage the database)

Setup & Run:

  1. Download the all required software and install them.
  2. Start the sql server. For windows, cd to the bin direction under the installed SQL doc, initialize and install the sql server, if you already have sql server installed, jump to the last step. Then input ‘net start mysql’. (Remember to edit the c3p0-config.xml under project\src for your own sql server host and password)
  3. Set the preferences of IDE. For Eclipse, in preferences/java/installed JREs, add JDK1.8 as new JRE, and apply it. In preferences/server/runtime environments, add tomcat8.5, and change its JRE to JDK1.8.
  4. Import the project as existing project, right click it, in properties/java build path/libraries, make sure that Tomcat and JDK1.8 are both added, if not add them (click add lib, server runtime for tomcat and user library for JDK1.8). Then click add JREs, add all package under project\WebContent\WEB-INF\lib direction.
  5. Strat the tomcat server. For Eclipse, there will be a button for server, and tomcat will be shown on it, click it and initialize the server.
  6. Run the project. For Eclipse, click run/run on server, then the website will be shown on the IDE. Or you can access it with URL, like ‘http://localhost:8080’.

Data Base Management:

  1. Open Navicat, add new link, input host and password, test if it can link to the sql server (remember to net start sql first)
  2. In the new link, click run sql, and chose the shop.sql, then you can edit the database through the Navicat. Reminder, for security, we can only create manager account thought database, so that it limits the normal user.

Author:

@JessicaCai

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Java 44.4%
  • CSS 43.3%
  • JavaScript 12.3%