Giter VIP home page Giter VIP logo

guestbook's Introduction

nil.camp

Build Status

이 프로젝트를 호스팅하고 있었던 http://nil.camp (IP: 52.68.124.223)는 비용때문에 중지되었습니다.

개발 시작하기

1. 프로젝트 받기

$ git clone https://github.com/clojure-study/guestbook.git
$ cd guestbook

2. PostgreSQL 설치 및 실행

http://www.postgresql.org/download/ 에서 OS에 따라 설치하고 실행한다.

맥 사용자의 경우

맥의 경우 가장 쉬운 방법은 다음과 같다: http://postgresapp.com/ 에서 다운로드하고, /Applications로 옮기고, 더블클릭하여 실행한다.

우분투 사용자의 경우 쉬운 설정방법

설치 이후 간편 사용 설정법은 링크의 내용을 참조한다.

3. psql 접속 및 User, Database 생성

psql 에 접속하여 user 와 Database 를 생성한다.

Database 생성

project.clj 의 :profiles :dev :db-spec 참고하여 database 를 생성한다.

psql# CREATE DATABASE {database name};

User 생성

psql# CREATE USER {user name} WITH PASSWORD '{password name}';

4. DB 초기 셋업

$ lein run migrate

5. 프로젝트 실행

$ lein run

6. 확인

웹 브라우저로 http://localhost:3000 에 접속하여 확인

배포하기

빌드

$ cd guestbook
$ lein uberjar

파일 업로드

$ scp -i "clojurestudy-aws.pem" target/guestbook.jar [email protected]:~/target

여기서 pem 파일의 path는 배포자에 따라 다를 수 있음. 그리고 환경 설정 파일인 .lein-env의 수정이 필요하면 그것도 업로드한다(옵션).

$ scp -i "clojurestudy-aws.pem" .lein-env [email protected]:~

서버 재시작

ssh로 접속하여 screen 세션에 들어감

$ ssh -i "clojurestudy-aws.pem" [email protected]
$ screen -r

서버 정지하고 다시 시작. -Duser.home=$HOME 옵션은 샌드박스 기능때문에 필요하게 되었다.

Ctrl + c
$ sudo java -Duser.home=$HOME -jar target/guestbook.jar 80

세션에서 나옴

Ctrl + a + d

guestbook's People

Contributors

manmyung avatar djey9538 avatar yangwansu avatar soulawaker avatar dreamofsnail avatar recursivecurry avatar ksseono avatar duddns avatar expert0226 avatar

Stargazers

Smilena avatar  avatar Lee Seung Chul (이승철) avatar dain avatar Soohyun Baik avatar Cheolhee avatar  avatar SangGi Lee avatar Shin DongHan avatar

Watchers

 avatar Cheolhee avatar James Cloos avatar Shin DongHan avatar shawn.won avatar Je, Young-Hui avatar  avatar  avatar  avatar  avatar  avatar dain avatar Lee Seung Chul (이승철) avatar  avatar

guestbook's Issues

luminus template 고정

luminus template의 잦은 업데이트가 스터디에 방해가 된다. 한개의 안정된 버전으로 고정할 필요가 있다.

로컬에 PostgreSQL 설치하여 프로젝트에 연결하는 방법 README에 추가

프로젝트를 로컬에서 돌려보려고 하는데 PostgreSQL이 설치가 되어 있지 않아서 에러가 나네요.
PostgreSQL 경험이 없는 사람을 위해, 어떻게 설치하고 실행시켜 프로젝트에 연결하는지에 대한 안내를 README에 추가하면 좋을 것 같습니다.

저의 경우 맥인데 프로젝트 실행을 못하고 있어요ㅠㅠ
Postgre.app을 설치하여 실행은 시켰는데 "jdbc:postgresql://호스트이름(또는 주소):포트번호/데이터베이스이름?user=이름&password=비밀번호" 를 어떻게 지정해야 하는지 모르겠어요.

사이트에 보이는 용어 변경

사이트의 주제가 Guestbook에서 nil.camp로 변경되었기 때문에 이에 맞추어 보이는 용어를 변경할 필요가 있겠네요.
guestbook -> nil.camp
Guest Books -> Free Board

비밀번호 암호화

현재 DB에 비밀번호가 plain text로 저장됩니다. 암호화해야 할 것 같네요.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.