![Bolted - [Astro.js - Python - React.js]](/images/assets/bolt-url.png)
Bolted - [Astro.js - Python - React.js]
- Ivan Luna
- Python , FastAPI , Astro , React , PostgreSQL , Supabase , Full Stack Development , Vercel Deployment
- 20 Jan, 2024
Bolted is a modern URL shortening service built with FastAPI and Astro.js. It features a React-powered frontend for seamless user interaction and PostgreSQL for robust data persistence.
Technical Stack:
-
Frontend:
- Astro.js for static site generation
- React for interactive components
- Tailwind CSS for styling
-
Backend:
- FastAPI framework
- PostgreSQL via Supabase
- Python 3.11+
Installation Guide:
Backend Setup
# Clone repository
git clone https://github.com/ivnimprv/bolted-python.git
cd bolted-python
# Create virtual environment
python -m venv venv
source venv/bin/activate # Linux/macOS
.\venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txt
# Configure environment
cp .env.example .env
# Edit .env with your credentials
Frontend Setup
# Clone repository
git clone https://github.com/ivnimprv/bolted-frontend.git
cd bolted-frontend
# Install dependencies
npm install
# Development server
npm run dev
# Build for production
npm run build
Environment Variables:
Backend (.env)
DOMAIN_URL=https://bolted.site
HASHIDS_SALT=your_secure_salt_here
DB_HOST=your_database_host
DB_USER=your_username
DB_PASSWORD=your_password
DB_NAME=your_database
DB_SSLMODE=require
Frontend (.env)
PUBLIC_API_URL=https://api.bolted.site
License:
See LICENSE for details.