
사전 준비
- Linux and MacOS
- Windows (WSL)
Twenty를 설치하고 사용하기 전에, 먼저 컴퓨터에 다음을 설치하세요:
1단계: Git 복제
터미널에서 다음 명령어를 실행하세요.- SSH (Recommended)
- HTTPS
아직 SSH 키를 설정하지 않은 경우, 여기를 참조하여 설정하는 방법을 배우세요.
2단계: 루트 위치 설정
3단계: PostgreSQL 데이터베이스 설정
- Linux
- Mac OS
- Windows (WSL)
Option 1 (preferred): To provision your database locally:
Use the following link to install Postgresql on your Linux machine: Postgresql InstallationNote: You might need to add
sudo -u postgres to the command before psql to avoid permission errors.postgres와 비밀번호 postgres 를 사용합니다.
4단계: Redis 데이터베이스 (캐시) 설정
Twenty는 최상의 성능을 제공하기 위해 redis 캐시가 필요합니다.- Linux
- Mac OS
- Windows (WSL)
Option 1: To provision your Redis locally:
Use the following link to install Redis on your Linux machine: Redis Installation
5단계: 환경 변수 설정
프로젝트를 구성하기 위해 환경 변수나.env 파일을 사용하세요. 추가 정보는 여기에서 확인하십시오
/front와 /server의 .env.example 파일을 복사하세요:
6단계: 의존성 설치
Twenty 서버를 빌드하고 데이터베이스에 몇 가지 데이터를 시드하기 위해, 다음 명령어를 실행하세요:npm이나 pnpm은 작동하지 않음을 주의하세요.
7단계: 프로젝트 실행
- Linux
- Mac OS
- Windows (WSL)
리눅스 배포판에 따라 Redis 서버가 자동으로 시작될 수 있습니다.
시작되지 않는다면, 각 배포판에 맞는 Redis 설치 가이드를 확인하세요.
8단계: Twenty 사용하기
프론트엔드 Twenty의 프론트엔드는 http://localhost:3001에서 실행됩니다. 기본 데모 계정을 사용하여 로그인할 수 있습니다:tim@apple.dev (비밀번호: tim@apple.dev)
백엔드
- Twenty의 서버는 http://localhost:3000에서 실행됩니다.
- The GraphQL API can be accessed at http://localhost:3000/graphql
- The REST API can be reached at http://localhost:3000/rest