https://github.com/binarybrain/database-project
  
  
    Database Project for EPFL 
    https://github.com/binarybrain/database-project
  
        Last synced: 7 months ago 
        JSON representation
    
Database Project for EPFL
- Host: GitHub
- URL: https://github.com/binarybrain/database-project
- Owner: BinaryBrain
- Created: 2014-03-05T11:24:20.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-18T23:46:50.000Z (over 11 years ago)
- Last Synced: 2025-02-01T04:29:53.735Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 12.6 MB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
- 
            Metadata Files:
            - Readme: README.md
 
Awesome Lists containing this project
README
          Database-Project
================
Introduction
------------
The goal of this EPFL project was to manage a quite big database via a graphical interface. We acheive that by doing a web server to link the database with the user web interface.
Another big challenge was to create a lot of complex SQL queries.

If you want more information about this project, please take a look at [the full report](report_group3.pdf).
_Oh! By the way, we had 100/100 points. =D_
How to Run
----------
1) Make sure you're connected on the EPFL network
2) Launch the Java server with the following commands:
On Windows:
```
cd server
mkdir bin
javac -cp "bin;lib/ojdbc7.jar" -d bin src/database/* src/webServer/*
java -cp "bin/;lib/ojdbc7.jar" webServer.WebServer
```
On Linux/MacOS:
```
cd server
mkdir bin
javac -cp bin:lib/ojdbc7.jar -d bin src/database/* src/webServer/*
java -cp bin:lib/ojdbc7.jar webServer.WebServer
```
3) Go to [localhost:7123](http://localhost:7123/)
Git Setup
---------
Extract [Music.zip](http://diaswww.epfl.ch/courses/db2014/project/Music.zip) in the main folder to have something like this `Database-Project/ProjectData/*.csv`. This folder is gitignored.
Server Response (JSON)
----------------------
### Success
```
{
	"status": "OK",
	"data": [
		{ "ID_ARTIST": "1", "NAME": "The xx" },
		{ "ID_ARTIST": "2", "NAME": "Camilla Sparksss", "AREA": "Switzerland" }
	]
}
```
### Error
```
{
	"status": "Error",
	"error": "I'm a teapot."
}
```