How to use

1. Project Download

  • Clone the Project from GitHub

    • Visit the Sej-dule GitHub Repository.

    • Click Code → Download ZIP to download the ZIP file.

    • Use the following commands to clone the project:

    git clone https://github.com/24-2-Sej-dule/Sej-dule.git
    cd Sej-dule
    
  • Run the HTML File

    • Open the index.html file in your browser.

    • This allows you to use the Sej-dule application.

2. Node.js and MongoDB Setup

  • Install Node.js

    • Use the following commands to install Node.js:

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
    export NVM_DIR="$HOME/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
    nvm install --lts
    
  • Install and Run MongoDB

    mongod --dbpath /path/to/your/database
    

3. Environment Variable Setup

  • Create a .env File

    • In the root directory of the project, create a .env file and add the following content:

    TOKEN_SECRET=Sej-dule-success
    

4. Install Packages and Run

  • Install npm Packages

    • Install the required packages for the project:

    npm i
    
  • Start the Project

    • Use the following command to run the project:

    npm run start
    

5. Access Path

  • To access the project running on the local server, open your browser and go to the following URL:

    http://localhost:3333/1-index.html
    

1. 프로젝트 다운로드

  • GitHub에서 프로젝트 클론

    • Sej-dule GitHub Repository에 접속합니다.

    • Code → Download ZIP을 클릭하여 ZIP 파일을 다운로드합니다.

    • 아래 명령어를 사용하여 파일을 설치할 수 있습니다.

      git clone https://github.com/24-2-Sej-dule/Sej-dule.git
      cd Sej-dule
      
  • HTML 파일 실행

    • index.html 파일을 브라우저에서 실행합니다.

    • 이를 통해 Sej-dule(셋둘)을 이용할 수 있습니다.

2. Node.js 및 MongoDB 환경 설정

  • node.js 설치

    • 아래 명령어를 사용하여 설치할 수 있습니다.

    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
    export NVM_DIR="$HOME/.nvm"
    [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
    nvm install --lts
    
  • MongoDB 설치 및 실행

    mongod --dbpath /path/to/your/database
    

3. 환경 변수 설정

  • .env 파일 생성

    • 프로젝트 최상위 디렉토리에 .env 파일을 생성하고 아래 내용을 추가합니다.

TOKEN_SECRET=Sej-dule-success

4. 패키지 설치 및 진행

  • npm 패키지 설치

    • 프로젝트 실행에 필요한 패키지를 설치합니다.

    npm i
    
  • 프로젝트 실행

    • 아래 명령어를 사용하여 프로젝트를 실행합니다.

    npm run start
    

5. 접속 경로

  • 로컬 서버에서 실행된 프로젝트에 접속하려면 브라우저에서 다음 URL을 입력합니다.

    http://localhost:3333/1-index.html