1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-19 18:47:03 +00:00

Updated Development Quickstart (markdown)

James Hillyerd
2020-07-25 11:40:46 -07:00
parent f948e54787
commit 82cd936036

@@ -8,33 +8,34 @@ Checkout the source, and switch to the development branch:
```sh ```sh
git clone https://github.com/inbucket/inbucket.git git clone https://github.com/inbucket/inbucket.git
cd inbucket
git checkout develop git checkout develop
``` ```
Build the web UI: Build the backend (will fetch Go dependencies):
```sh ```sh
cd inbucket/ui make
```
Install JavaScript dependencies and build the web UI:
```sh
cd ui
npm i npm i
npm run build npm run build
``` ```
Build the backend: Verify Inbucket starts and that the web UI loads:
```sh ```sh
cd .. cd ..
make
```
Test Inbucket starts and the web UI loads:
```sh
./inbucket ./inbucket
``` ```
You should see a handful of `INF` log lines. Point your web browser at http://127.0.0.1:9000/ then select the Status tab. If everything loaded, then congratulations, you have a locally compiled build running! You should see a handful of `INF` log lines but no errors. Point your web browser at http://127.0.0.1:9000/ then select the Status tab. If everything loaded, then congratulations, you have a locally compiled build running!
As we did not pass any specific configuration options to Inbucket, we are using memory storage (instead of files on disk), and it will be empty each time we restart the `inbucket` process. Let's look at a better workflow... As we did not pass any specific configuration options to Inbucket, it is using memory storage (instead of files on disk), and will be empty each time we restart the `inbucket` process. Let's look at a better workflow...
# Backend development # Backend development