diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000000..0fcfbdc77d --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,51 @@ +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: Run Flake8 + run: | + flake8 && echo "✅ Python linting completed successfully!" + + lint_js: + name: "Lint JavaScript Files" + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: "14" + + - name: Install JSHint + run: npm install jshint --global + + - name: Run JSHint + run: | + find ./server/database -name "*.js" -exec jshint {} + \ + && echo "✅ JavaScript linting completed successfully!" 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 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