-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
272 changed files
with
8,086 additions
and
81,046 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#NEXT_PUBLIC_BACKEND_URL=http://localhos:9000 | ||
NEXT_PUBLIC_BACKEND_URL=https://api.learn-languages-writing.com | ||
NEXT_PUBLIC_GOOGLE_CLIENT_ID=128663644139-o8phiqm9vbn3onkrj0ehircqi59sm319.apps.googleusercontent.com | ||
|
||
GOOGLE_CLIENT_SECRET=YOUR_GOOGLE_CLIENT_SECRET | ||
LOGGER_LEVEL=debug | ||
JWT_SECRET=some_secret | ||
TOKEN_MAXAGE=3600 | ||
TOKEN_EXPIRED_IN=3600 | ||
CLIENT_ORIGIN=http://localhost:3000 | ||
DATABASE_URL=writing-trainer.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
echo "Loading mahjong flake" | ||
use flake |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,8 @@ | ||
packages | ||
node_modules | ||
gh_pages | ||
storybook-static | ||
coverage | ||
coverage-ts | ||
.next | ||
out | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Deploy Backend | ||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- '.github/workflows/deploy-backend.yml' | ||
- 'Cargo.lock' | ||
- 'Cargo.toml' | ||
- 'scripts/ci/build_docker.sh' | ||
- 'src/backend/**' | ||
|
||
jobs: | ||
build-and-deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- uses: cachix/install-nix-action@v22 | ||
with: | ||
github_access_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
username: ${{ secrets.DOCKERHUB_USERNAME }} | ||
password: ${{ secrets.DOCKERHUB_TOKEN }} | ||
|
||
- name: Install 🚧 | ||
run: | | ||
touch ./is-ci-rust | ||
nix develop path:$(pwd) -c rustup install stable | ||
- name: Check 🔧 | ||
run: | | ||
nix develop path:$(pwd) -c bash -c 'cargo clippy --release' | ||
- name: Build and publish docker image | ||
run: | | ||
nix develop path:$(pwd) -c bash -c scripts/ci/build_docker.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,13 @@ | ||
node_modules | ||
gh_pages | ||
storybook-static | ||
coverage | ||
coverage-ts | ||
.next | ||
out | ||
dist | ||
|
||
/target | ||
.direnv | ||
.env | ||
writing-trainer.db |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/react-ui/.storybook/preview.js → .storybook/preview.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.