GRNLITE is a comprehensive web application that connects authors with beta readers, streamlining the manuscript feedback process. Built with Django and deployed on Render, it provides a professional platform for manuscript review and collaboration.
- Python 3.8+
- Node.js 14+
- PostgreSQL 12+
# Clone the repository
git clone https://github.com/your-username/GRNLITE.git
cd GRNLITE
# Setup development environment
./dev.sh setup
# Start all services
./dev.sh startAlternative setup:
# Install dependencies
npm run install-deps
# Copy environment configuration
cp .env.example .env
# Edit .env with your settings
# Run migrations
python manage.py migrate
# Start Django (port 8000)
npm run dev:django
# Start Express API (port 3000) - in another terminal
npm run dev:express- Django Application: http://localhost:8000
- Express API: http://localhost:3000
- Admin Panel: http://localhost:8000/admin
npm run dev:all- Start both Django and Express serversnpm run dev:django- Start Django development server onlynpm run dev:express- Start Express API server onlynpm run setup- Complete development environment setupnpm run status- Check service statusnpm run stop- Stop all development services
Key environment variables for development (see .env.example):
NODE_ENV=development- Disables keep-alive serviceDEBUG=true- Enables Django debug modeJWT_SECRET&JWT_REFRESH_SECRET- Required for authenticationDATABASE_URL- PostgreSQL connection string
- Django Framework: Core web framework with custom user model and authentication
- Django REST Framework: RESTful API endpoints for frontend interactions
- PostgreSQL Database: Production-ready database with comprehensive data models
- JWT Authentication: Secure token-based authentication system
- Email Verification: Custom middleware for mandatory email verification
- File Management: Secure manuscript and media file handling
my_app: Core application containing user management, manuscripts, and beta reader functionalitymanuscripts: Consolidated manuscript-related models (integrated into my_app)- Custom User Model: Extended Django user with email verification and user types
- Comprehensive Models: Authors, beta readers, manuscripts, feedback, resources, and notifications
- Responsive Design: Modern CSS with custom typography (Playwrite DE Grund Thin)
- Dashboard System: Separate author and reader dashboards
- Template Structure: Organized HTML templates with reusable components
- Interactive JavaScript: Dynamic content loading and form handling
- Manuscript Management: Upload manuscripts with cover art, plot summaries, and keywords
- Beta Reader Selection: Browse and select beta readers based on experience and genres
- Feedback Collection: Receive structured feedback through customizable questions
- Project Budgeting: Set budgets and manage beta reader compensation
- NDA Support: Optional NDA requirements for sensitive manuscripts
- Dashboard Analytics: Track manuscript status and feedback progress
- Profile Creation: Showcase experience, genres, and availability
- Manuscript Discovery: Browse available manuscripts matching interests
- Application System: Apply for beta reading projects with cover letters
- Structured Feedback: Provide feedback through guided questions and categories
- Portfolio Building: Track completed projects and build reputation
- Email Verification: Mandatory email verification for account activation
- Notifications: Real-time notifications for project updates
- Resource Library: Access to writing guides and templates
- Secure Authentication: JWT-based authentication with session management
- Backend: Django 5.1.4, Django REST Framework 3.15.2
- Database: PostgreSQL with psycopg2-binary
- Authentication: JWT (djangorestframework-simplejwt), Social Auth
- File Handling: Pillow for image processing, python-docx for documents
- Deployment: Gunicorn, Whitenoise for static files
- Frontend: HTML5, CSS3, JavaScript, responsive design
- Development: Black (formatting), Flake8 (linting), Pytest (testing)
- Python 3.8+
- PostgreSQL
- Git
-
Clone the repository
git clone https://github.com/JSander72/GRNLITE.git cd GRNLITE -
Create and activate virtual environment
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
Install dependencies
pip install -r requirements.txt
-
Set up environment variables
Create a
.envfile in the project root:DJANGO_SECRET_KEY=your-secret-key-here DEBUG=True DJANGO_ALLOWED_HOSTS=127.0.0.1,localhost DATABASE_URL=postgresql://username:password@localhost:5432/grnlite_db # Email Configuration (optional for development) EMAIL_HOST_USER=[email protected] EMAIL_HOST_PASSWORD=your-app-password
-
Set up database
python manage.py migrate python manage.py createsuperuser
-
Run development server
python manage.py runserver
-
Access the application
- Main site: http://127.0.0.1:8000/
- Admin panel: http://127.0.0.1:8000/admin/
# Run all tests
python manage.py test
# Run with coverage
pytest --cov=my_app
# Run specific test files
python manage.py test my_app.tests# Format code
black .
# Check linting
flake8
# Check Django configuration
python manage.py check --deploy-
User Registration & Authentication
- Register as author/beta reader
- Verify email functionality
- Test login/logout
-
Author Workflow
- Submit manuscript with metadata
- Browse beta readers
- Review feedback received
-
Beta Reader Workflow
- Create profile with genres
- Apply for manuscripts
- Submit structured feedback
The application is configured for deployment on Render with:
render.yaml: Service configuration- PostgreSQL database: Managed database service
- Environment variables: Secure configuration management
- Static file serving: Whitenoise for production static files
DJANGO_SECRET_KEY=secure-production-key
DEBUG=False
DJANGO_ALLOWED_HOSTS=your-domain.onrender.com
DATABASE_URL=postgresql://... # Provided by RenderBefore deploying to Render, you MUST set these environment variables in your Render dashboard:
# Generate these secrets (required for production)
JWT_SECRET=<generated-secret>
JWT_REFRESH_SECRET=<generated-secret>
DJANGO_SECRET_KEY=<generated-secret># Generate JWT secrets
openssl rand -base64 32
openssl rand -base64 32
# Generate Django secret key
python -c "from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())"- Set environment variables in Render dashboard
- Push code to GitHub
- Render auto-deploys from
render.yaml
📖 See RENDER_DEPLOYMENT.md for detailed deployment instructions.
- Main App: https://grnlite.onrender.com
- Keep-Alive Service: Runs automatically to prevent app sleep
| Feature | Development | Production |
|---|---|---|
| JWT Secrets | Optional (defaults) | Required |
| Django Secret | Optional (default) | Required |
| Keep-Alive | Disabled | Enabled |
| Debug Mode | Enabled | Disabled |
| Database | Local PostgreSQL | Render PostgreSQL |
GRNLITE/
├── grnlite/ # Django project settings
├── my_app/ # Core application
│ ├── models.py # Data models (User, Manuscript, Feedback, etc.)
│ ├── views.py # API and template views
│ ├── serializers.py # DRF serializers
│ ├── forms.py # Django forms
│ ├── middleware.py # Email verification middleware
│ └── migrations/ # Database migrations
├── Templates/ # HTML templates
├── static/ # Static files (CSS, JS, images)
├── media/ # User uploaded files
├── requirements.txt # Python dependencies
├── render.yaml # Deployment configuration
└── manage.py # Django management script
- Email Verification: Mandatory verification before access
- JWT Authentication: Secure token-based auth
- CSRF Protection: Built-in Django CSRF middleware
- File Upload Security: Secure file handling and storage
- Environment-based Configuration: Secure secrets management
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
For questions or issues:
- Create an issue on GitHub
- Contact the development team
This project is licensed under the MIT License - see the LICENSE file for details.