Skip to content

sun0225SUN/cyc-earth

Repository files navigation

screenshot

Create a personal cycling home page

English | 简体中文

GitHub License GitHub Repo stars GitHub Repo forks GitHub repo size GitHub last commit Page views

✨ Features

  • 🌓 Supports dark/light themes

🎬 Showcase

Welcome to add your website to the list #1

🔨 Tech Stack

👥 Contributors

sun0225SUN
Guoqi Sun

🍭 Community

💡 Inspired Projects

🚀 Getting Started

Vercel

Deploy with Vercel

Netlify

Deploy to Netlify

Warning

Please ensure that all necessary environment variables are correctly configured before running the project.

# Drizzle
DATABASE_PROVIDER="sqlite" # sqlite | turso
DATABASE_URL="file:./db.sqlite"
TURSO_DATABASE_URL=""
TURSO_DATABASE_TOKEN=""

# Strava
STRAVA_CLIENT_ID="119**6"
STRAVA_CLIENT_SECRET="d69695808bd**************bb288"
STRAVA_REFRESH_TOKEN="fdcc5f5fb27********0a103886e39"

# Mapbox
NEXT_PUBLIC_MAPBOX_ACCESS_TOKEN="pk.eyJ1Ijoic3VuZ3V***********************dxVfugnrCSRT2kw"

# Umami
NEXT_PUBLIC_UMAMI_ANALYTICS_ID="****-1d30-4876-8de6-****"
NEXT_PUBLIC_UMAMI_ANALYTICS_JS="https://umami.guoqi.dev/script.js"

Note

Variables marked with * are required only when STORAGE_PROVIDER is set to cloudflare-r2. For other storage providers (AWS S3, Vercel Blob), different environment variables will be required.

Strava

https://stravalib.readthedocs.io/en/latest/get-started/authenticate-with-strava.html

💻 Local development

  1. Clone the repository
git clone https://github.com/sun0225SUN/cyc-earth.git

cd camlife
  1. Create a .env file in the root directory, and configure the environment variables as described in the 🚀 Getting Started section.

  2. Install dependencies

bun install
  1. Set up the database
bun db:push
  1. Start the development server
bun run dev

Open: http://localhost:3000 to see your application.

📝 License

This project is licensed under the GNU General Public License v3.0.

🤝 Contributing

Contributions are welcome! Feel free to open issues and pull requests.

💖 Sponsors

If you find this project helpful, please give it a ⭐️ on GitHub!

wxpay alipay

📊 Repository Status

Alt

⭐ Star History

Star History Chart

About

Life is like riding a bicycle.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Contributors 2

  •  
  •