Skip to content

Commit c189bc5

Browse files
committed
removed code to install air locally for project
1 parent f8f9454 commit c189bc5

File tree

3 files changed

+12
-23
lines changed

3 files changed

+12
-23
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,3 @@ ui/yarn-error.log*
1313
.DS_Store
1414
.env
1515
tmp/
16-
bin/

README.md

+12-14
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,7 @@ Presents a question where users can only answer "yes" or "no".
253253
### Email
254254

255255
Prompts user to enter their email
256+
256257
```yaml
257258
- type: email
258259
label: Please enter your email.
@@ -261,14 +262,15 @@ Prompts user to enter their email
261262
### File
262263

263264
Prompts user to upload their file based on a given formats and maximum upload size.
265+
264266
```yaml
265-
- type: file
266-
label: Upload a Berlin Image
267-
validation:
268-
formats:
269-
- .jpg
270-
- .png
271-
max_size_bytes: 5*1024*1024 # 5 MB
267+
- type: file
268+
label: Upload a Berlin Image
269+
validation:
270+
formats:
271+
- .jpg
272+
- .png
273+
max_size_bytes: 5*1024*1024 # 5 MB
272274
```
273275

274276
## Responses
@@ -307,20 +309,16 @@ The demo service (links above) is deployed to Fly.io (Go, SQLite) and Vercel (Ne
307309
308310
### Backend Development setup
309311
310-
Run the following command for setting up backend for development purpose
311-
312-
```
313-
make run
314-
```
312+
Install AIR locally from [here](https://github.com/air-verse/air)
315313
316-
Or if air is locally installed
314+
Run the following command after AIR installation
317315
318316
```
319317
cd api
320318
air
321319
```
322320
323-
This command will help in live reloading whenever changes are done in the APIs using `air`.
321+
This command will help in live reloading whenever changes are done in the APIs using `air`.
324322
Custom configurations can be set by modifying `air.toml` file
325323
326324
### Environment Variables

api/Makefile

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
AIR_BIN=bin/air
2-
3-
run:
4-
if [ ! -f $(AIR_BIN) ]; then \
5-
echo "Installing Air locally..."; \
6-
go build -o $(AIR_BIN) github.com/air-verse/air; \
7-
fi
8-
$(AIR_BIN)
91

102
lint:
113
golangci-lint run

0 commit comments

Comments
 (0)