Skip to content

Commit 352936d

Browse files
authored
Merge pull request #3 from intelligencedev/develop
Implements build process, new repoconcat node and other minor node updates.
2 parents c1dfecd + 0339998 commit 352936d

17 files changed

+1348
-208
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ frontend/tools_plan.md
22
frontend/src/system_templates.yaml
33
frontend/public/**
44
deploy/.DS_Store
5+
dist/manifold

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) intelligence.dev
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+26-9
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ Backend is `localhost:8080` and frontend is `localhost:3000`
2727

2828
We will implement a solution to change the configuration via a `.env` in a future commit.
2929

30+
## Build and Run
31+
32+
```
33+
$ nvm use 20
34+
$ npm run build
35+
$ go build -ldflags="-s -w" -trimpath -o ./dist/manifold main.go
36+
```
37+
38+
The `manifold` binary will contain the compiled frontend and backend.
39+
40+
Run the compiled application:
41+
42+
```
43+
$ cd dist
44+
$ ./manifold
45+
```
46+
3047
### External Dependencies
3148

3249
Jaeger is not required, but we recommend [deploying the container](https://www.jaegertracing.io/docs/1.6/getting-started/#all-in-one-docker-image).
@@ -35,14 +52,6 @@ Jaeger is not required, but we recommend [deploying the container](https://www.j
3552

3653
Requires Node 20. We recommend using [NVM](https://github.com/nvm-sh/nvm) to manage Node environments.
3754

38-
39-
Frontend - localhost:3000:
40-
```
41-
$ nvm use 20
42-
$ npm install
43-
$ npm run dev
44-
```
45-
4655
Backend - localhost:8080:
4756

4857
The backend has Open Telemetry support and requires the JAEGER_ENDPOINT (Jaeger) endpoint be set. This does not have to exist so a fake endpoint can be set.
@@ -52,4 +61,12 @@ The application will just throw an error when attempting to send telemtry to the
5261
$ export JAEGER_ENDPOINT=<my otel endpoint>
5362
$ go mod tidy
5463
$ go run .
55-
```
64+
```
65+
66+
Frontend - localhost:3000:
67+
```
68+
$ cd frontend
69+
$ nvm use 20
70+
$ npm install
71+
$ npm run dev
72+
```

0 commit comments

Comments
 (0)