Skip to content

Commit

Permalink
Migrated to Vite
Browse files Browse the repository at this point in the history
  • Loading branch information
neerajbelsare committed Dec 31, 2023
1 parent 2ddb46b commit 765fa47
Show file tree
Hide file tree
Showing 44 changed files with 3,084 additions and 16,683 deletions.
2 changes: 1 addition & 1 deletion .idea/Schwarz.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 2 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@ COPY frontend/ .
# Copy package.json and package-lock.json (or npm-shrinkwrap.json)
COPY frontend/package*.json ./

# Install Bun globally (you may need to adjust the installation command)
RUN npm install -g bun

# Install dependencies using npm ci for caching
RUN bun install
RUN bun build
RUN npm install
RUN npm run build

# Stage 2: Build Django Backend
FROM python:3.11 as backend-builder
Expand Down
21 changes: 21 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,27 @@ pipeline {
}
}

stage('Qodana') {
environment {
QODANA_TOKEN = credentials('eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb24iOiJBNm1yYSIsInByb2plY3QiOiJ6RWpiTCIsInRva2VuIjoiQURFOFoifQ.AzTHJMPmhHa-QF1Z4Wo5QGvPNIv-BazlhWOWuGwu7y0')
}
agent {
docker {
args '''
-v "${WORKSPACE}":/data/project
--entrypoint=""
'''
image 'jetbrains/qodana-python'
}
}
when {
branch 'master'
}
steps {
sh '''qodana'''
}
}

// stage('Deploy to EKS') {
// when {
// branch 'master'
Expand Down
68 changes: 0 additions & 68 deletions MyStyle.css

This file was deleted.

File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion backend/accounts/apps.py → backend/auth/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

class AccountsConfig(AppConfig):
default_auto_field = "django.db.models.BigAutoField"
name = "accounts"
name = "auth"
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions backend/backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"corsheaders",
"rest_framework",
"rest_framework_simplejwt",
"accounts",
"auth",
]

MIDDLEWARE = [
Expand Down Expand Up @@ -137,7 +137,7 @@

DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"

AUTH_USER_MODEL = "accounts.User"
AUTH_USER_MODEL = "auth.User"

SIMPLE_JWT = {
"ACCESS_TOKEN_LIFETIME": timedelta(minutes=5),
Expand Down
5 changes: 3 additions & 2 deletions backend/backend/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@

urlpatterns = [
path("admin/", admin.site.urls),
path("api/user/", include("accounts.urls")),
]
path("api/user/", include("auth.urls")),
# path('socialmedia/', include('socialmedia.urls')), # Include socialmedia app URLs
]
Binary file removed backend/requirements.txt
Binary file not shown.
30 changes: 16 additions & 14 deletions frontend/public/index.html → frontend/index.html
Original file line number Diff line number Diff line change
@@ -1,37 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<head>
<meta charset="utf-8"/>
<link rel="icon" href="/favicon.ico"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta name="theme-color" content="#000000"/>
<meta
name="description"
content="Web site created using create-react-app"
name="description"
content="Web site created using create-react-app"
/>
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
<link rel="apple-touch-icon" href="/logo192.png"/>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
<link rel="manifest" href="/manifest.json"/>
<!--
Notice the use of %PUBLIC_URL% in the tags above.
Notice the use of in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
Unlike "/favicon.ico" or "favicon.ico", "/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<title>Schwarz | The all-in-one community for 3D Artists</title>
</head>
<body>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<!-- Like below. This is the script tag for bootstrapping your Vite application -->
<script type="module" src="/src/index.jsx"></script>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand All @@ -42,5 +44,5 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
</body>
</html>
Loading

0 comments on commit 765fa47

Please sign in to comment.