Skip to content

Commit

Permalink
3rd party app registration app. issue #518
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouji2013 committed Sep 30, 2022
1 parent 71f14ca commit 07f027d
Show file tree
Hide file tree
Showing 16 changed files with 1,419 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app-registration/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target/*
application.properties
2 changes: 2 additions & 0 deletions app-registration/dev/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/sh -x
mvn clean package
20 changes: 20 additions & 0 deletions app-registration/dev/create.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-- create test data
DROP TABLE IF EXISTS registration;
CREATE TABLE registration
(
app_code CHAR(30) PRIMARY KEY,
title CHAR(30) NOT NULL,
url CHAR(100) NOT NULL,
description VARCHAR(500) NOT NULL,
developers CHAR(100) NOT NULL,
email CHAR(50) NOT NULL,
institution CHAR(50) NOT NULL,
lab CHAR(100),
image MEDIUMBLOB,
status CHAR(30)
);

INSERT INTO registration
VALUES
('ABC20220809010203', 'test title', 'test url', 'test description',
'test developer name', 'test email', 'test instituion', 'test lab', null, 'published')
4 changes: 4 additions & 0 deletions app-registration/dev/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh -x

if [ -z "$CATALINA_HOME" ]; then export CATALINA_HOME=~/apache-tomcat-8.5.50; fi
sudo cp target/registration.war $CATALINA_HOME/webapps
62 changes: 62 additions & 0 deletions app-registration/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>

<groupId>gov.nih.nci.ctd2.dashboard</groupId>
<artifactId>registration</artifactId>
<packaging>war</packaging>
<version>0.9</version>

<properties>
<maven.compiler.release>11</maven.compiler.release>
<spring.version>5.3.22</spring.version>
</properties>

<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aspects</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.30</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20220320</version>
</dependency>
<dependency>
<groupId>com.sun.mail</groupId>
<artifactId>javax.mail</artifactId>
<version>1.6.2</version>
</dependency>
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.4</version>
</dependency>

</dependencies>

<build>
<finalName>registration</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<compilerArgument>-Xlint:all</compilerArgument>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading

0 comments on commit 07f027d

Please sign in to comment.