Skip to content

Commit

Permalink
removed code to install air locally for project
Browse files Browse the repository at this point in the history
  • Loading branch information
unamdev0 committed Oct 28, 2024
1 parent f8f9454 commit c189bc5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 23 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,3 @@ ui/yarn-error.log*
.DS_Store
.env
tmp/
bin/
26 changes: 12 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ Presents a question where users can only answer "yes" or "no".
### Email

Prompts user to enter their email

```yaml
- type: email
label: Please enter your email.
Expand All @@ -261,14 +262,15 @@ Prompts user to enter their email
### File

Prompts user to upload their file based on a given formats and maximum upload size.

```yaml
- type: file
label: Upload a Berlin Image
validation:
formats:
- .jpg
- .png
max_size_bytes: 5*1024*1024 # 5 MB
- type: file
label: Upload a Berlin Image
validation:
formats:
- .jpg
- .png
max_size_bytes: 5*1024*1024 # 5 MB
```

## Responses
Expand Down Expand Up @@ -307,20 +309,16 @@ The demo service (links above) is deployed to Fly.io (Go, SQLite) and Vercel (Ne
### Backend Development setup
Run the following command for setting up backend for development purpose
```
make run
```
Install AIR locally from [here](https://github.com/air-verse/air)
Or if air is locally installed
Run the following command after AIR installation
```
cd api
air
```
This command will help in live reloading whenever changes are done in the APIs using `air`.
This command will help in live reloading whenever changes are done in the APIs using `air`.
Custom configurations can be set by modifying `air.toml` file
### Environment Variables
Expand Down
8 changes: 0 additions & 8 deletions api/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
AIR_BIN=bin/air

run:
if [ ! -f $(AIR_BIN) ]; then \
echo "Installing Air locally..."; \
go build -o $(AIR_BIN) github.com/air-verse/air; \
fi
$(AIR_BIN)

lint:
golangci-lint run
Expand Down

0 comments on commit c189bc5

Please sign in to comment.