-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathtest-output.html
More file actions
63 lines (63 loc) · 2.12 KB
/
test-output.html
File metadata and controls
63 lines (63 loc) · 2.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
<h1 id="installation"><a href="#installation">Installation</a></h1>
<p>
This guide walks you through setting up Bulwark for local development or
production deployment.
</p>
<h2 id="prerequisites"><a href="#prerequisites">Prerequisites</a></h2>
<ul>
<li><strong>Node.js</strong> 20 or later</li>
<li><strong>npm</strong>, <strong>yarn</strong>, or <strong>pnpm</strong></li>
<li>
A running <strong>Stalwart Mail Server</strong> instance with JMAP enabled
</li>
</ul>
<h2 id="quick-start"><a href="#quick-start">Quick Start</a></h2>
<h3 id="1-clone-the-repository">
<a href="#1-clone-the-repository">1. Clone the Repository</a>
</h3>
<pre><code class="language-bash">git clone https://github.com/bulwarkmail/webmail.git
cd webmail
</code></pre>
<h3 id="2-install-dependencies">
<a href="#2-install-dependencies">2. Install Dependencies</a>
</h3>
<pre><code class="language-bash">npm install
</code></pre>
<h3 id="3-configure-environment">
<a href="#3-configure-environment">3. Configure Environment</a>
</h3>
<p>
Copy the example environment file and update it with your Stalwart server
details:
</p>
<pre><code class="language-bash">cp .env.example .env.local
</code></pre>
<p>Edit <code>.env.local</code>:</p>
<pre><code class="language-env">NEXT_PUBLIC_JMAP_URL=https://your-stalwart-server.com/jmap
NEXT_PUBLIC_APP_NAME=Bulwark
</code></pre>
<h3 id="4-start-development-server">
<a href="#4-start-development-server">4. Start Development Server</a>
</h3>
<pre><code class="language-bash">npm run dev
</code></pre>
<p>
Open <a href="http://localhost:3000">http://localhost:3000</a> in your
browser.
</p>
<h2 id="production-build"><a href="#production-build">Production Build</a></h2>
<pre><code class="language-bash">npm run build
npm start
</code></pre>
<p>
The production server starts on port 3000 by default. Use the
<code>PORT</code> environment variable to change it:
</p>
<pre><code class="language-bash">PORT=8080 npm start
</code></pre>
<h2 id="updating"><a href="#updating">Updating</a></h2>
<p>To update to the latest version:</p>
<pre><code class="language-bash">git pull origin main
npm install
npm run build
</code></pre>