-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinitial-setup.txt
50 lines (41 loc) · 1.26 KB
/
initial-setup.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# 1. Cloudflare Pages Frontend Setup
CLOUDFLARE_TOKEN="your_token_here"
APP_NAME="coldplaymeetup"
DOMAIN="${APP_NAME}.pages.dev"
# 2. Render.com Backend Setup
# Login to render.com
# Create new Web Service
# Connect GitHub repository
# Environment: Docker
# Free instance type: 512MB RAM, shared CPU
RENDER_SERVICE_NAME="coldplaymeetup-api"
RENDER_URL="${RENDER_SERVICE_NAME}.onrender.com"
# 3. GitHub Repository Setup
GITHUB_TOKEN="your_token_here"
# 4. Environment Variables
# Add these in Render.com dashboard:
FLASK_APP=app.backend
FLASK_ENV=production
SECRET_KEY=$(openssl rand -hex 32)
DOMAIN_NAME=${DOMAIN}
ADMIN_EMAIL=your@email.com
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/coldplaymeetup"
# 5. Local Development Setup
git clone https://github.com/yourusername/coldplay-meetup.git
cd coldplay-meetup
# Install dependencies
python -m venv venv
source venv/bin/activate # On Windows: .\venv\Scripts\activate
pip install -r requirements.txt
# Install Node.js dependencies
cd frontend
npm install
npm run dev
# 6. Database Setup
# Render.com provides free PostgreSQL database
# Create database in Render dashboard
# Copy the provided DATABASE_URL to environment variables
# 7. Initial Database Migration
flask db upgrade
# 8. Start Development Server
flask run