Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
.gradle
/local.properties
/.idea/workspace.xml
/.idea/libraries
.DS_Store
/build
/captures
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio

*.iml

## Directory-based project format:
.idea/
# if you remove the above rule, at least ignore the following:

# User-specific stuff:
# .idea/workspace.xml
# .idea/tasks.xml
# .idea/dictionaries

# Sensitive or high-churn files:
# .idea/dataSources.ids
# .idea/dataSources.xml
# .idea/sqlDataSources.xml
# .idea/dynamic.xml
# .idea/uiDesigner.xml

# Gradle:
# .idea/gradle.xml
# .idea/libraries

# Mongo Explorer plugin:
# .idea/mongoSettings.xml

## File-based project format:
*.ipr
*.iws

## Plugin-specific files:

# IntelliJ
/out/

# mpeltonen/sbt-idea plugin
.idea_modules/

# JIRA plugin
atlassian-ide-plugin.xml

# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
39 changes: 21 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
# README for Service Adapter Assignment on IF4050 2015

##Instruction
1. Fork this repository https://github.com/if-itb/if4050-2015-ServiceAdapter.git
2. Work on your fork --> commit --> push [as many as you want]
3. [When you are done OR the deadline] create pull request

Each participnats should indicate clearly the following data:
* NIM = 1[35|82]+XXYYY
* Name = XXXXXXX
* GithubID = YYYY
* NIM = 13512014
* Name = Muhammad Yafi
* GithubID = yafithekid

Requreiments:
* ....
* ....
*
* Gradle build tools
* Internet connection
* Java JDK 1.8
* IntelliJ IDEA

How to Deploy
1. .....
2. .....
3. .....
4.
1. Setup your Java and Gradle environment.
2. Resolve gradle dependencies with IDEA (or command prompt)

How to Run
1. .....
2. .....
1. Run the `Application.java` file.
2. See `localhost:8080/dpk?query_params` where query_params contains:
- `ps` is the study program code.
- `kode` is the course code.
- `kelas` is the class number.
3. Example of valid request: `GET localhost:8080/dpk?ps=135&kode=IF4050&kelas=01`
4. The server will return the most recent class data, or 404 not found if the `kode` doesn't exist.

Run result:
![](https://raw.githubusercontent.com/yafithekid/if4050-2015-ServiceAdapter/master/demo/smt1.PNG)

![](https://raw.githubusercontent.com/yafithekid/if4050-2015-ServiceAdapter/master/demo/smt2.PNG)

25 changes: 25 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
group 'com.yafithekid'
version '1.0'

apply plugin: 'java'
apply plugin: 'spring-boot'
apply plugin: 'idea'
sourceCompatibility = 1.8

repositories {
mavenCentral()
}

buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.springframework.boot:spring-boot-gradle-plugin:1.2.5.RELEASE'
}
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-web"
compile "org.jsoup:jsoup:1.8.3"
testCompile group: 'junit', name: 'junit', version: '4.11'
}
Binary file added demo/smt1.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/smt2.PNG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Wed Sep 16 15:44:13 ICT 2015
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.2-all.zip
164 changes: 164 additions & 0 deletions gradlew

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

90 changes: 90 additions & 0 deletions gradlew.bat

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rootProject.name = 'six-crawler'

Loading