Skip to content

Commit

Permalink
Add basic user creation (#1)
Browse files Browse the repository at this point in the history
* Update web README

* Add dev, fix start

* Add custom tailwind configurations

* Add dark mode with ThemeToggler

* Init db module

* Add axum server initialization

* Add new users module for inserting users into db

* Add registration route for creating a new user

* Add new registration page

* Update Cargo.lock

* Add API_URL env var

* Add build-api workflow

* Fix to use Swatinem rust-cache and justfile

* Upgrade node cache action to v4

* Add build badges to README

* Add build-api command

* Fix build command to call build-api
  • Loading branch information
sneakycrow authored Oct 31, 2024
1 parent 053201d commit ca10c87
Show file tree
Hide file tree
Showing 30 changed files with 3,035 additions and 55 deletions.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
DATABASE_URL=
API_URL=http://localhost:3000
27 changes: 27 additions & 0 deletions .github/workflows/build-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: build api

on:
push:
branches: [main]
paths:
- "packages/api/**"
- "Cargo.toml"
- "Cargo.lock"
pull_request:
branches: [main]
paths:
- "packages/api/**"
- "Cargo.toml"
- "Cargo.lock"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- run: rustup toolchain install stable --profile minimal
- uses: extractions/setup-just@v2
- name: build
run: just build-api
4 changes: 2 additions & 2 deletions .github/workflows/build-web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
# Cache the build output directory
- name: Cache build output
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
packages/web/.svelte-kit
Expand All @@ -48,7 +48,7 @@ jobs:
# Cache node_modules
- name: Cache node_modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
node_modules
Expand Down
Loading

0 comments on commit ca10c87

Please sign in to comment.