From 1d56028f2901a21ffab0a615b83ac80987abb365 Mon Sep 17 00:00:00 2001 From: lgg6bentley Date: Tue, 17 Jun 2025 01:35:47 -0400 Subject: [PATCH 1/4] README.md --- README.md | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5884e26a5b..11ac3e31e6 100644 --- a/README.md +++ b/README.md @@ -1 +1,28 @@ -# coding-project-template \ No newline at end of file +# 🚗 Tesla-Themed Registration App + +A stylish, full-stack user registration interface inspired by the sleek aesthetic of the Tesla Model Y. Built with React on the frontend and Django powering the backend. + +## 🎯 Features + +- 🌌 Dark mode design with Model Y background +- ⚡ Neon-accented inputs and buttons +- ✅ Form validation and user registration +- 🔗 Django REST integration-ready + +## 🖼️ Demo + +![Register Form Preview](./screenshot.png) + +> _Insert your live site link or deployment badge here_ + +## 🚀 Tech Stack + +| Frontend | Backend | Styling | +|----------------|---------------|--------------| +| React (Vite) | Django / DRF | Custom CSS | + +## 🛠️ Setup Instructions + +1. Clone the repo: + ```bash + git clone git@github.com:lgg6bentley/xrwvm-fullstack_developer_capstone2.git From be06ed71ec0782d3a4699246acf74a1dc313b719 Mon Sep 17 00:00:00 2001 From: lgg6bentley Date: Thu, 26 Jun 2025 21:24:51 -0400 Subject: [PATCH 2/4] main.yml --- .github/workflows/main.yml | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/main.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..78e5623149 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,47 @@ +name: 'Lint Code' +on: + push: + branches: [master, main] + pull_request: + branches: [master, main] +jobs: + lint_python: + name: Lint Python Files + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: 3.12 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 + - name: Print working directory + run: pwd + - name: Run Linter + run: | + pwd + # This command finds all Python files recursively and runs flake8 on them + find . -name "*.py" -exec flake8 {} + + echo "Linted all the python files successfully" + lint_js: + name: Lint JavaScript Files + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + - name: Install Node.js + uses: actions/setup-node@v3 + with: + node-version: 14 + - name: Install JSHint + run: npm install jshint --global + - name: Run Linter + run: | + # This command finds all JavaScript files recursively and runs JSHint on them + find ./server/database -name "*.js" -exec jshint {} + + echo "Linted all the js files successfully" From 4244cd0880e697332349e7da39d3876c8a2ec49b Mon Sep 17 00:00:00 2001 From: lgg6bentley Date: Thu, 26 Jun 2025 22:32:16 -0400 Subject: [PATCH 3/4] main.yml --- .github/workflows/main.yml | 64 ++++++++++++++++++++------------------ 1 file changed, 34 insertions(+), 30 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 78e5623149..0fcfbdc77d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,47 +1,51 @@ -name: 'Lint Code' +name: "Lint Code" + on: push: branches: [master, main] pull_request: branches: [master, main] + jobs: lint_python: - name: Lint Python Files + name: "Lint Python Files" runs-on: ubuntu-latest + steps: - - name: Checkout Repository - uses: actions/checkout@v3 - - - name: Set up Python - uses: actions/setup-python@v4 - with: - python-version: 3.12 - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 - - name: Print working directory - run: pwd - - name: Run Linter - run: | - pwd - # This command finds all Python files recursively and runs flake8 on them - find . -name "*.py" -exec flake8 {} + - echo "Linted all the python files successfully" + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 + + - name: Run Flake8 + run: | + flake8 && echo "✅ Python linting completed successfully!" + lint_js: - name: Lint JavaScript Files - runs-on: ubuntu-latest - steps: + name: "Lint JavaScript Files" + runs-on: ubuntu-latest + + steps: - name: Checkout Repository uses: actions/checkout@v3 - - name: Install Node.js + + - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: 14 + node-version: "14" + - name: Install JSHint run: npm install jshint --global - - name: Run Linter + + - name: Run JSHint run: | - # This command finds all JavaScript files recursively and runs JSHint on them - find ./server/database -name "*.js" -exec jshint {} + - echo "Linted all the js files successfully" + find ./server/database -name "*.js" -exec jshint {} + \ + && echo "✅ JavaScript linting completed successfully!" From 4946c2e2725d8a6b105fcd99d5729c797811a9e7 Mon Sep 17 00:00:00 2001 From: lgg6bentley Date: Sat, 28 Jun 2025 21:15:10 -0400 Subject: [PATCH 4/4] Fix flake8 E501 and W391 errors in settings.py --- server/djangoproj/settings.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/server/djangoproj/settings.py b/server/djangoproj/settings.py index e0b1092a5c..ee8af3007f 100644 --- a/server/djangoproj/settings.py +++ b/server/djangoproj/settings.py @@ -19,11 +19,14 @@ # Quick-start development settings - unsuitable for production -# See https://docs.djangoproject.com/en/3.2/howto/deployment/checklist/ +# See https://docs.com/en/3.2/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! -SECRET_KEY =\ +# Original line 93: 'django-insecure-ccow$tz_=9%dxu4(0%^(z%nx32#s@(zt9$ih@)5l54yny)wm-0' +# E501: Line too long. Breaking it into multiple lines using parentheses. +SECRET_KEY = ( 'django-insecure-ccow$tz_=9%dxu4(0%^(z%nx32#s@(zt9$ih@)5l54yny)wm-0' +) # SECURITY WARNING: don't run with debug turned on in production! DEBUG = True @@ -135,4 +138,5 @@ DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField' STATICFILES_DIRS = [] - +# W391: There should be no blank line at the very end of the file. +# I have removed the extra blank line that was present after STATICFILES_DIRS = []. \ No newline at end of file