Skip to content

Latest commit

ย 

History

24 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

ValueUp RESTful ๊ฐ•์˜ ์„œ๋ฒ„ ์ƒ˜ํ”Œ

๋‹จ๋ง๊ณผ์˜ ํ†ต์‹ ์„ ์ฒ˜๋ฆฌํ•˜๋Š” ์„œ๋ฒ„ ์ƒ˜ํ”Œ ์ž…๋‹ˆ๋‹ค.

์š”๊ตฌ์‚ฌํ•ญ

  • JDK 1.7+
  • Maven 3+
  • MariaDB(MySQL)

Google compute engine

VM Instance ์ƒ์„ฑ์€ ๊ฐ•์˜์‹œ๊ฐ„์— ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค.

DB ์ƒ์„ฑ

git clone์„ ์ด์šฉํ•˜์—ฌ cloneํ•œ ํ›„ ํ”„๋กœ์ ํŠธ ํด๋”์—์„œ ๋‹ค์Œ์˜ ๋ช…๋ น์–ด๋กœ DB ์ƒ์„ฑ, ๊ถŒํ•œ ๋ถ€์—ฌ ๋ฐ ํ…Œ์ด๋ธ”์„ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

$ mysql -uroot < ddl.sql

root ๊ณ„์ •์— ๋น„๋ฐ€๋ฒˆํ˜ธ๊ฐ€ ๋ถ€์—ฌ๋˜์—ˆ์„ ๊ฒฝ์šฐ์—๋Š” -p ์˜ต์…˜์„ ์ถ”๊ฐ€ํ•ฉ๋‹ˆ๋‹ค.

$ mysql -uroot -p < ddl.sql

์ƒ์„ฑ์ด ์™„๋ฃŒ๋œ ํ›„ ์ ‘์† ์—ฌ๋ถ€๋ฅผ ํ™•์ธํ•ฉ๋‹ˆ๋‹ค. ddl.sql ํŒŒ์ผ์— ๋ช…์‹œ๋œ ๊ฒƒ์ฒ˜๋Ÿผ ๋น„๋ฐ€๋ฒˆํ˜ธ๋Š” 1111 ์ž…๋‹ˆ๋‹ค.

$ mysql -uvalueup -p valueup_test
Enter password:
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 97
Server version: 5.5.41-MariaDB MariaDB Server

Copyright (c) 2000, 2014, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [valueup_test]>

์‹คํ–‰

maven tomcat7 plugin์„ ์ด์šฉํ•œ ์‹คํ–‰

$ mvn clean tomcat7:run

๋ฏธ๋ฆฌ ์„ค์น˜๋œ tomcat๊ณผ ์—ฐ๋™

ํ•ด๋‹น ์ƒ˜ํ”Œ์˜ war ํŒŒ์ผ์„ $CATALINA_HOME/webapps ํด๋”์— ๋ณต์‚ฌ ํ›„ tomcat ์žฌ๊ธฐ๋™

  • war ํŒŒ์ผ ์ƒ์„ฑ
$ mvn clean package
  • war ํŒŒ์ผ ๋ณต์‚ฌ(yum์„ ์ด์šฉํ•˜์—ฌ tomcat์„ ์„ค์น˜ํ•˜์˜€์„ ๊ฒฝ์šฐ)
$ sudo cp ./target/project-valueup.war /var/lib/tomcat/webapps
$ sudo service tomcat restart

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages