Skip to content

Commit

Permalink
chore: add Bruno
Browse files Browse the repository at this point in the history
  • Loading branch information
lbennett-stacki committed Jul 24, 2024
1 parent 8cdc931 commit d01ddd1
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cloud/api/bruno/bruno.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"version": "1",
"name": "Envy API",
"type": "collection",
"ignore": [
"node_modules",
".git"
]
}
3 changes: 3 additions & 0 deletions cloud/api/bruno/environments/local.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vars {
api_base: http://localhost:4000
}
11 changes: 11 additions & 0 deletions cloud/api/bruno/users/create.bru
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
meta {
name: create
type: http
seq: 1
}

post {
url: {{api_base}}/users
body: none
auth: none
}
Binary file modified cloud/api/tmp/main
Binary file not shown.
1 change: 1 addition & 0 deletions cloud/api/users/database/create.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func CreateUser() (User, error) {
return User{}, err
}

// TODO: take from req
user := User{
ID: uuid.New().String(),
FirstName: "John",
Expand Down
4 changes: 4 additions & 0 deletions cloud/db/schema/users.atlas.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ table "users" {
column "email" {
type = varchar(255)
}
index "email" {
columns = [column.email]
unique = true
}

column "password" {
type = varchar(255)
Expand Down
2 changes: 2 additions & 0 deletions cloud/ui/Justfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dev:
npm run dev

0 comments on commit d01ddd1

Please sign in to comment.