-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add login page #1
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
3160579
Add login page
subinasr 61e85a0
Add backend submodule
subinasr 5708f1c
Add register form
subinasr 05232c1
Add graphql and codegen configs
subinasr 9a40ddb
Add register form and mutation
subinasr f17c682
Fix type and lint fixes
subinasr 68bdff9
Initialize generated files
subinasr 916f514
Fix CI
subinasr 99047e9
Use checkout for submodules
thenav56 608348f
Fix CI
subinasr ba375ba
Fetch and list projects in home page
subinasr 848c9cb
Add logout
subinasr f418d78
Fix stylings
subinasr File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,3 @@ | ||
[submodule "backend"] | ||
path = backend | ||
url = [email protected]:the-deep/questionnaire-builder-backend.git |
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,11 +1,17 @@ | ||
{ | ||
"entry": ["./src/main.tsx"], | ||
"entry": ["./src/index.tsx"], | ||
"ignorePatterns": ["**/node_modules/**", "build/**"], | ||
"ignoreUnimported": ["**/*.d.ts"], | ||
"ignoreUnimported": ["**/*.d.ts", "**/*.test.tsx", "**/*.test.ts"], | ||
"ignoreUnused": [], | ||
"extensions": [".ts", ".js", ".tsx", ".jsx"], | ||
"aliases": { | ||
"#views/*": ["./src/views/*"], | ||
"#utils/*": ["./src/utils/*"] | ||
"#utils/*": ["./src/utils/*"], | ||
"#redirects/*": ["./src/redirects/*"], | ||
"#contexts/*": ["./src/contexts/*"], | ||
"#components/*": ["./src/components/*"], | ||
"#hooks/*": ["./src/hooks/*"], | ||
"#configs/*": ["./src/configs/*"], | ||
"#generated/*": ["./generated/*"] | ||
} | ||
} |
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,14 @@ | ||
overwrite: true | ||
schema: | ||
- "./backend/schema.graphql" | ||
documents: | ||
- "src/**/*.tsx" | ||
- "src/**/*.ts" | ||
generates: | ||
./generated/types.ts: | ||
plugins: | ||
- "typescript" | ||
- "typescript-operations" | ||
./generated/schema.json: | ||
plugins: | ||
- "introspection" |
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,11 +1,68 @@ | ||
version: '3.8' | ||
version: '3.2' | ||
|
||
services: | ||
react: | ||
tty: true | ||
build: . | ||
command: sh -c 'yarn install && yarn dev --host' | ||
environment: | ||
APP_TITLE: ${APP_TITLE:-React Base App} | ||
APP_TITLE: ${APP_TITLE:-Questionnaire Builder} | ||
APP_STATIC_ENDPOINT: ${APP_STATIC_ENDPOINT:-http://localhost:8311} | ||
APP_GRAPHQL_ENDPOINT: ${APP_GRAPHQL_ENDPOINT:-http://localhost:8311/graphql/} | ||
env_file: | ||
- .env | ||
command: sh -c 'yarn install && yarn start --host' | ||
ports: | ||
- '3000:3000' | ||
volumes: | ||
- .:/code | ||
|
||
db: | ||
image: postgres:15-alpine | ||
environment: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
POSTGRES_DB: questionnaire_builder | ||
volumes: | ||
- postgres-data15:/var/lib/postgresql/data | ||
|
||
api: | ||
image: ghcr.io/the-deep/questionnaire-builder-backend:${DOCKER_BACKEND_TAG:-latest} | ||
build: | ||
context: ./backend/ | ||
environment: | ||
APP_ENVIRONMENT: development | ||
APP_TYPE: web | ||
DJANGO_SECRET_KEY: ${DJANGO_SECRET_KEY?err} | ||
# To overwrite this values. set the values in .env | ||
DJANGO_DEBUG: ${DJANGO_DEBUG:-True} | ||
APP_DOMAIN: localhost:8311 | ||
APP_HTTP_PROTOCOL: http | ||
APP_FRONTEND_HOST: localhost:3000 | ||
SESSION_COOKIE_DOMAIN: ${SESSION_COOKIE_DOMAIN:-localhost} | ||
CSRF_COOKIE_DOMAIN: ${CSRF_COOKIE_DOMAIN:-localhost} | ||
DJANGO_ALLOWED_HOST: ${DJANGO_ALLOWED_HOST:-*} | ||
DJANGO_DB_NAME: ${DJANGO_DB_NAME:-questionnaire_builder} | ||
DJANGO_DB_USER: ${DJANGO_DB_USER:-postgres} | ||
DJANGO_DB_PASSWORD: ${DJANGO_DB_PASSWORD:-postgres} | ||
DJANGO_DB_PORT: ${DJANGO_DB_PORT:-5432} | ||
DJANGO_DB_HOST: ${DJANGO_DB_HOST:-db} | ||
EMAIL_FROM: ${EMAIL_FROM:[email protected]} | ||
command: ./scripts/run_develop.sh | ||
env_file: | ||
# Provide additional environment variables using .env file | ||
- .env | ||
volumes: | ||
- ./backend/:/code | ||
- media:/media | ||
- ipython_data_local:/root/.ipython/profile_default # persist ipython data, including ipython history | ||
ports: | ||
- '3000:3000' | ||
- 8311:8000 | ||
depends_on: | ||
- db | ||
|
||
|
||
volumes: | ||
media: | ||
postgres-data15: | ||
ipython_data_local: |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add trailing slack if necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean trailing slash? If yes, it's not required here.