Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/binarybrain/database-project
Database Project for EPFL
https://github.com/binarybrain/database-project
Last synced: about 1 month 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 (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-06-18T23:46:50.000Z (over 10 years ago)
- Last Synced: 2024-10-16T11:49:19.483Z (3 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.
![screenshot](screenshots/search.png?raw=true)
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."
}
```