Recreation of the ROBLOX Blog from 2012 with Astro + Prisma + Minio
-
Make a
.envand 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
-
Generate the database from the prisma schema by running this in your command line.
npx prisma db push
-
Build the website
npm run build
-
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:2456instead of by defaultlocalhost:4321HOST=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.
Account creation is not implemented in the UI. You'll need to create accounts directly using a database client.
- Create a new user record with default values
- Set your desired username
- Generate a bcrypt password hash using this tool
- Insert the hash as the password field