Skip to content

Fix/lint errors #206

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
51 changes: 51 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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!"
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,28 @@
# coding-project-template
# 🚗 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 [email protected]:lgg6bentley/xrwvm-fullstack_developer_capstone2.git
10 changes: 7 additions & 3 deletions server/djangoproj/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = [].