Skip to content

Project-Radeon/radeon-blog

 
 

Repository files navigation

ROBLOX 2012 Blog

Recreation of the ROBLOX Blog from 2012 with Astro + Prisma + Minio

Build Instructions

  1. Make a .env and follow the example configuration:

    DATABASE_URL="sqlserver://HOST:PORT;database=radeon_blog;user=USERNAME;password=PASSWORD;encrypt=true;trustServerCertificate=true"
    
    MINIO_SERVER=http://HOST:PORT # or http://EXAMPLE.COM
    MINIO_ACCESS_KEY={ACCESS_KEY}
    MINIO_SECRET_KEY={SECRET_KEY}
    MINIO_BUCKET_NAME=radeon-cdn
    
    
    PUBLIC_IMG_URL=https://img.radeon-rr.net # Where the blog resolves profile pictures from
    PUBLIC_WEBSITE_URL=radeon-rr.net # Everything related to https://SUBDOMAIN.radeon-rr.com will fetch from this
  2. Generate the database from the prisma schema by running this in your command line.

    npx prisma db push
  3. Build the website

    npm run build
  4. Run the server!

    node ./dist/server/entry.mjs

    Optionally you may need to provide the host and port the server will run on, for example you need it to point to 192.168.1.130:2456 instead of by default localhost:4321

    HOST=192.168.1.130 PORT=2456 node ./dist/server/entry.mjs

Follow the same instructions but on Step 3 use npm run dev if you're trying to make changes to the blog.

Creating an account

Account creation is not implemented in the UI. You'll need to create accounts directly using a database client.

  1. Create a new user record with default values
  2. Set your desired username
  3. Generate a bcrypt password hash using this tool
  4. Insert the hash as the password field

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • CSS 49.6%
  • Astro 21.4%
  • TypeScript 20.5%
  • Svelte 7.8%
  • Other 0.7%