File tree Expand file tree Collapse file tree 3 files changed +10
-24
lines changed Expand file tree Collapse file tree 3 files changed +10
-24
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ build-go:
3
3
cd ./server && make build
4
4
5
5
run : build-go
6
- cd server/cmd && ./main & cd ../ui/ && yarn && yarn start
6
+ cd server/cmd && ./main && cd ../ ../ui/ && yarn && yarn start
7
7
8
8
# Build images and run
9
9
docker-build :
Original file line number Diff line number Diff line change @@ -13,31 +13,28 @@ Download and install [golang](https://golang.org)
13
13
14
14
Download and install [ postgres] ( https://www.postgresql.org/download/ )
15
15
16
- setup your postgres database, enter your config secrets in the [ .env] ( ./server/.env )
16
+ Setup your postgres database, env secrets can be changed in the [ .env] ( ./server/.env ) file
17
17
18
18
- [ A complete guide to PostgreSQL] ( https://prabhupant.medium.com/a-complete-guide-to-postgresql-e4d1cefb9866 )
19
19
20
20
- [ Installing PostgreSQL for Mac, Linux, and Windows] ( https://medium.com/@dan.chiniara/installing-postgresql-for-windows-7ec8145698e3 )
21
21
22
+ Ensure you have ` make ` installed.
23
+
22
24
``` bash
23
- make build-go
25
+ make run
24
26
```
25
27
26
- This will start the go server.
27
-
28
- To start the react app navigate to the client directory
28
+ This will start the go server & the react frontend.
29
29
30
- ``` bash
31
- make build-go
32
- ```
33
30
### Using docker
34
- using docker compose
31
+ Ensure you have ` docker ` installed
35
32
36
33
``` bash
37
- docker-compose build
38
- docker-compose up
34
+ make docker-build
35
+ make docker-run
39
36
```
40
-
37
+ Server is live on ` :8081 ` and UI is on ` :3000 `
41
38
42
39
## Endpoints
43
40
| endpoint | method | body | description |
@@ -51,6 +48,5 @@ docker-compose up
51
48
## Contributing
52
49
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
53
50
54
-
55
51
## License
56
52
[ MIT] ( https://choosealicense.com/licenses/mit/ )
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments