Skip to content
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

Chore/decomission old backend and migrate #87

Merged
merged 27 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file modified .github/workflows/prettier.yml
100644 → 100755
Empty file.
8 changes: 8 additions & 0 deletions .husky/pre-commit
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,19 @@
# Try to curl the URL and pipe the output to a file
curl http://0.0.0.0:8055/server/specs/oas -o ./backend/docs/api_docs.json



# Check if the curl command was successful
if [ $? -ne 0 ]; then
echo "Curl command failed are you in the dev-container? Aborting commit."
exit 1
fi

# Format the JSON file
jq . ./backend/docs/api_docs.json > ./backend/docs/api_docs.tmp && mv ./backend/docs/api_docs.tmp ./backend/docs/api_docs.json

# Find and replace "url": "0.0.0.0:8055" with "url": "http://0.0.0.0:8055"
sed -i 's|"url": "0.0.0.0:8055"|"url": "http://0.0.0.0:8055"|g' ./backend/docs/api_docs.json

# If successful, proceed with the commit
echo "Curl command succeeded. Proceeding with commit."
7 changes: 0 additions & 7 deletions backend/.env

This file was deleted.

5 changes: 1 addition & 4 deletions backend/.gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
node_modules
# Keep environment variables out of version control
.env

# Keep generated files out of version control
docs/api-doc.json
.env
132 changes: 0 additions & 132 deletions backend/api/api-doc.yml

This file was deleted.

73 changes: 0 additions & 73 deletions backend/api/paths/events.js

This file was deleted.

29 changes: 0 additions & 29 deletions backend/api/paths/events/past.js

This file was deleted.

29 changes: 0 additions & 29 deletions backend/api/paths/events/upcoming.js

This file was deleted.

Loading
Loading