Skip to content

Commit 66357fa

Browse files
authored
Merge pull request #208 from HiEventsDev/develop
main <- develop
2 parents aa360d7 + 6943f28 commit 66357fa

File tree

46 files changed

+1133
-442
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1133
-442
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
github: HiEventsDev
22
buy_me_a_coffee: hi.events
3+
open_collective: hievents

INSTALL_WITHOUT_DOCKER.md

Lines changed: 223 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,223 @@
1+
# Running Hi.Events Locally Without Docker
2+
3+
This guide provides instructions for setting up Hi.Events locally without using Docker, including the necessary prerequisites,
4+
setup steps, and configuration details.
5+
6+
**For a faster and more reliable setup, we strongly recommend using the official [Docker setup](https://hi.events/docs/getting-started/quick-start).**
7+
8+
## Prerequisites
9+
10+
1. [Install PHP 8.2 or higher](https://www.php.net/downloads.php)
11+
2. [Install Composer](https://getcomposer.org/download/)
12+
3. [Install PostgreSQL](https://www.postgresql.org/download/)
13+
4. [Install Node.js](https://nodejs.org/en)
14+
5. [Install Yarn](https://yarnpkg.com/getting-started/install)
15+
16+
### PHP Extensions
17+
18+
Ensure the following PHP extensions are installed: `gd`, `pdo_pgsql`, `sodium`, `curl`, `intl`, `mbstring`, `xml`, `zip`, `bcmath`.
19+
20+
## Setup
21+
22+
First, fork the repository and clone it locally:
23+
24+
```bash
25+
git clone https://github.com/youraccount/Hi.Events.git
26+
```
27+
28+
Hi.Events has two main directories: `backend` (Laravel) and `frontend` (React).
29+
30+
### Backend Setup
31+
32+
1. **Create the `.env` file:**
33+
34+
Navigate to the `backend` directory and copy the example `.env` file:
35+
36+
```bash
37+
cd backend
38+
cp .env.example .env
39+
```
40+
41+
2. **Database Configuration:**
42+
43+
Update the `.env` file with your database credentials:
44+
45+
```bash
46+
DB_CONNECTION=pgsql
47+
DB_HOST=localhost
48+
DB_PORT=5432
49+
DB_DATABASE=postgres
50+
DB_USERNAME=postgres
51+
DB_PASSWORD=postgres
52+
```
53+
54+
This assume the default PostgreSQL configuration. Update the values as needed.
55+
56+
3. **Mail Server Configuration:**
57+
58+
Configure Mailtrap for email handling, or use the `log` driver to log emails locally:
59+
60+
```bash
61+
MAIL_MAILER=smtp
62+
MAIL_HOST=smtp.mailtrap.io
63+
MAIL_PORT=2525
64+
MAIL_USERNAME=your_mailtrap_username
65+
MAIL_PASSWORD=your_mailtrap_password
66+
MAIL_ENCRYPTION=tls
67+
MAIL_FROM_ADDRESS=your_email
68+
MAIL_FROM_NAME="${APP_NAME}"
69+
70+
# Alternatively use just this value to log emails locally:
71+
MAIL_MAILER=log
72+
```
73+
74+
4. **URL Configuration:**
75+
76+
Set the application and frontend URLs in the `.env` file:
77+
78+
```bash
79+
APP_URL=http://localhost
80+
APP_PORT=8000
81+
APP_FRONTEND_URL=http://localhost:5678
82+
```
83+
84+
5. **Install Dependencies:**
85+
86+
Install the backend dependencies:
87+
88+
```bash
89+
composer install
90+
```
91+
92+
6. **Generate Application Key:**
93+
94+
Generate the Laravel application key:
95+
96+
```bash
97+
php artisan key:generate
98+
```
99+
100+
7. **Run Migrations:**
101+
102+
Run the database migrations:
103+
104+
```bash
105+
php artisan migrate
106+
```
107+
108+
8. **Configure File Storage:**
109+
110+
Set the following values in your `.env` file:
111+
112+
```bash
113+
FILESYSTEM_PUBLIC_DISK=public
114+
FILESYSTEM_PRIVATE_DISK=local
115+
APP_CDN_URL=http://localhost:8000/storage
116+
```
117+
118+
Then create a symbolic link for storage:
119+
120+
```bash
121+
php artisan storage:link
122+
```
123+
124+
9. **Start the Backend Server:**
125+
126+
Start the Laravel development server:
127+
128+
```bash
129+
php artisan serve
130+
```
131+
132+
Visit `http://localhost:8000` to verify the backend is running.
133+
134+
10. **Optional: Configure Stripe (for Payment Integration):**
135+
136+
If you want to test the payment functionality, configure Stripe:
137+
138+
```bash
139+
STRIPE_PUBLIC_KEY=your_public_key
140+
STRIPE_SECRET_KEY=your_secret_key
141+
STRIPE_WEBHOOK_SECRET=your_webhook_secret
142+
```
143+
144+
### Frontend Setup
145+
146+
#### 1. **Create the `.env` File:**
147+
148+
Navigate to the `frontend` directory and copy the example `.env` file:
149+
150+
```bash
151+
cd frontend
152+
cp .env.example .env
153+
```
154+
155+
#### 2. **Configure Frontend `.env`:**
156+
157+
Update the `.env` file with the following settings:
158+
159+
```bash
160+
VITE_API_URL_CLIENT=http://localhost:8000
161+
VITE_API_URL_SERVER=http://localhost:8000
162+
VITE_FRONTEND_URL=http://localhost:5678
163+
VITE_STRIPE_PUBLISHABLE_KEY=pk_test_XXXXXXXX
164+
```
165+
166+
#### 3. **Install Dependencies:**
167+
168+
Install the frontend dependencies:
169+
170+
```bash
171+
yarn install
172+
```
173+
174+
#### 4. **Set Environment Variables:**
175+
176+
Set the environment variables before starting the frontend app.
177+
178+
- **Windows:**
179+
180+
```bash
181+
$env:VITE_API_URL_CLIENT="http://localhost:8000"
182+
$env:VITE_API_URL_SERVER="http://localhost:8000"
183+
$env:VITE_FRONTEND_URL="http://localhost:5678"
184+
$env:VITE_STRIPE_PUBLISHABLE_KEY="pk_test_XXXXXXXX"
185+
```
186+
187+
- **Linux/Mac:**
188+
189+
```bash
190+
export VITE_API_URL_CLIENT="http://localhost:8000"
191+
export VITE_API_URL_SERVER="http://localhost:8000"
192+
export VITE_FRONTEND_URL="http://localhost:5678"
193+
export VITE_STRIPE_PUBLISHABLE_KEY="pk_test_XXXXXXXX"
194+
```
195+
196+
#### 5. **Build and Start the Frontend:**
197+
198+
Run the following commands to build and start the frontend application:
199+
200+
```bash
201+
yarn build
202+
yarn start
203+
```
204+
205+
Visit `http://localhost:5678` to view the frontend.
206+
207+
## Troubleshooting
208+
209+
1. **Composer Install Errors:**
210+
Ensure the required PHP extensions are installed. Check by running:
211+
212+
```bash
213+
php -m
214+
```
215+
216+
2. **Database Connection Issues:**
217+
Verify the database credentials in the `.env` file and ensure the PostgreSQL service is running.
218+
219+
3. **Mail Server Errors:**
220+
Ensure that your mail server credentials (e.g., Mailtrap) are correct or use the `log` driver for local email logging.
221+
222+
4. **Frontend not connecting to the backend:**
223+
Ensure the API URLs are set correctly in both the frontend `.env` file and the backend `.env` file. Also, verify that environment variables are properly exported in the terminal.

README.ja.md

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
<p align="center">
2+
<img src="https://hievents-public.s3.us-west-1.amazonaws.com/website/hi-events-rainbow.png?v=1" alt="Hi.Events ロゴ" width="200px">
3+
</p>
4+
<h3 align="center">Hi.Events</h3>
5+
<p align="center">
6+
<a href="https://demo.hi.events/event/1/dog-conf-2030">デモイベント 🌟</a> <a href="https://hi.events?utm_source=gh-readme">ウェブサイト 🌎</a> <a href="https://hi.events/docs">ドキュメント 📄</a> <a href="https://hi.events/docs/getting-started?utm_source=gh-readme">インストール ⚙️</a>
7+
</p>
8+
9+
<h3 align="center">
10+
簡単にイベントを管理し、オンラインでチケットを販売します。
11+
</h3>
12+
13+
<div align="center">
14+
15+
[![Hi.Events ドキュメント](https://img.shields.io/badge/docs-hi.events-blue)](https://hi.events/docs)
16+
[![ライセンス: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://github.com/HiEventsDev/hi.events/LICENCE)
17+
[![GitHub リリース](https://img.shields.io/github/v/release/HiEventsDev/hi.events?include_prereleases)](https://github.com/HiEventsDev/hi.events/releases)
18+
[![ユニットテストの実行](https://github.com/HiEventsDev/hi.events/actions/workflows/unit-tests.yml/badge.svg?event=push)](https://github.com/HiEventsDev/hi.events/actions/workflows/unit-tests.yml)
19+
[![Docker ダウンロード数](https://img.shields.io/docker/pulls/daveearley/hi.events-all-in-one)](https://hub.docker.com/r/daveearley/hi.events-all-in-one)
20+
21+
</div>
22+
23+
<div align="center">
24+
🌟 スターを付けていただけると嬉しいです! 🌟
25+
</div>
26+
27+
<hr/>
28+
29+
## 目次
30+
31+
- [紹介](#-紹介)
32+
- [機能](#-機能)
33+
- [クイックスタート](#-クイックスタート)
34+
- [変更履歴](#-変更履歴)
35+
- [貢献](#-貢献)
36+
- [FAQ](#-faq)
37+
38+
## 📚 紹介
39+
40+
<a href="https://hi.events">Hi.Events</a> は、機能豊富な自ホスト型イベント管理およびチケット販売プラットフォームです。会議からクラブナイトまで、Hi.Events はあらゆる規模のイベントの作成、管理、チケット販売を支援するように設計されています。
41+
42+
<img alt="Hi.Events 自ホスト型チケット販売ダッシュボード" src="https://hievents-public.s3.us-west-1.amazonaws.com/website/dashboard-screenshot.png"/>
43+
44+
## 🌟 機能
45+
46+
<a href="https://hi.events">Hi.Events</a> は、イベント管理とチケット販売を効率化するための機能が満載です:
47+
48+
- 📊 **イベント分析:** イベントのパフォーマンスとチケット販売に関する深い洞察を得る。
49+
- 🎟 **埋め込み可能なチケットウィジェット:** チケット販売を簡単に任意のウェブサイトに統合。
50+
- 🖥 **カスタマイズ可能なイベントホームページ:** 柔軟なデザインオプションで目を引くイベントページを作成。
51+
- 🔑 **直感的なチェックインツール:** Hi.Events の QR コードチェックインツールで簡単に参加者をチェックイン。
52+
- 💬 **イベントメッセージングツール:** 重要な更新やリマインダーを参加者に送信。
53+
- 📝 **カスタム注文フォーム:** チェックアウト時にカスタマイズされた質問で参加者情報を収集。
54+
- 🎫 **複数のチケットタイプ:** 無料、有料、寄付、または階層型のチケットタイプ。
55+
- 💸 **多用途なプロモコード:** 高度に多用途な割引コード。先行販売アクセス、複数の割引オプション。
56+
- 💰 **即時支払い:** シームレスな Stripe 統合で即時支払いを楽しむ。
57+
- 🧾 **税金と手数料の設定:** チケットごとに税金と手数料を追加。
58+
- 📦 **データエクスポート:** 参加者と注文データを XLSX または CSV にエクスポート。
59+
- 💻 **REST API:** カスタム統合のためのフル機能の REST API。
60+
- 🔍 **SEO ツール:** 各イベントの SEO 設定をカスタマイズ。
61+
- 🛒 **美しいチェックアウトプロセス:** スムーズで美しいチェックアウト体験を確保。
62+
- 🔐 **役割ベースのアクセス:** 複数のユーザーロールをサポート。
63+
- 💻 **オンラインイベントサポート:** オンラインイベントの指示とリンクを提供。
64+
-**全額および部分的な払い戻しサポート:** 全額および部分的な払い戻しを簡単に管理。
65+
- 📧 **メール通知:** 自動メール通知で参加者を最新情報に保つ。
66+
- 📱 **モバイル対応:** どのデバイスでもシームレスな体験を楽しむ。
67+
- 🌐 **多言語サポート:** 複数の言語をサポート。
68+
- 🎉 **その他多数!**
69+
70+
## 🚀 クイックスタート
71+
72+
詳細なインストール手順については、[ドキュメント](https://hi.events/docs/getting-started) を参照してください。クイックスタートのために、以下の手順に従ってください:
73+
74+
### ワンクリックデプロイ
75+
76+
[![DigitalOcean でデプロイ](https://www.deploytodo.com/do-btn-blue.svg)](https://github.com/HiEventsDev/hi.events-digitalocean)
77+
78+
[![Render でデプロイ](https://render.com/images/deploy-to-render-button.svg)](https://github.com/HiEventsDev/hi.events-render.com)
79+
80+
[![Railway でデプロイ](https://railway.app/button.svg)](https://railway.app/template/8CGKmu?referralCode=KvSr11)
81+
82+
[![Zeabur でデプロイ](https://zeabur.com/button.svg)](https://zeabur.com/templates/8DIRY6)
83+
84+
### 🐳 Docker を使用したクイックスタート
85+
86+
> [!重要]
87+
> システムに Docker および Docker Compose がインストールされていることを確認してください。インストールされていない場合は、公式 Docker ウェブサイトからダウンロードできます:[Docker](https://www.docker.com/get-started)
88+
89+
1. **リポジトリをクローン:**
90+
```bash
91+
git clone git@github.com:HiEventsDev/hi.events.git
92+
```
93+
94+
2. **Docker ディレクトリに移動:**
95+
```bash
96+
cd hi.events/docker/all-in-one
97+
```
98+
99+
3. **Docker コンテナを起動:**
100+
```bash
101+
docker compose up -d
102+
```
103+
4. **アカウントを作成:**
104+
```bash
105+
ブラウザを開き、http://localhost:8123/auth/register に移動します。
106+
```
107+
108+
ℹ️ 他のインストール方法や、プロダクションまたはローカル開発環境の設定については、[クイックスタートガイド](https://hi.events/docs/getting-started) を参照してください。
109+
110+
## 📝 変更履歴
111+
112+
継続的な改善と機能追加については、[GitHub リリースページ](https://github.com/HiEventsDev/hi.events/releases) をご覧ください。
113+
114+
## 🤝 貢献
115+
116+
貢献、提案、バグ報告を歓迎します!新しい機能や拡張を提案する前に、ディスカッションのために issue を開いてください。
117+
118+
## ❓ FAQ
119+
120+
質問がありますか?[ドキュメント](https://hi.events/docs) に答えがあります。探しているものが見つからない場合は、[hello@hi.events](mailto:hello@hi.events) までお気軽にお問い合わせください。
121+
122+
## 📜 ライセンス
123+
124+
Hi.Events は [AGPL-3.0](https://github.com/HiEventsDev/hi.events/blob/main/LICENCE) ライセンスの条件に基づいてライセンスされています。
125+
126+
商用ライセンスオプションを含むライセンス情報の詳細については、[こちら](https://hi.events/licensing) のライセンスページをご覧ください。

0 commit comments

Comments
 (0)