Astro Hackathon Showcase

📡 SSR

ssr-astro

by Tomás Duclos

GitHub Live Preview

README.md

Astro Hackaton - Server Side Rendering

Helloo!, my name is Tomás and this is my first time participating in a hackathon <3

This project is thought so that users can “generate the content” of the site: creating an account (these will be listed on the home page), modifying their profile and being able to write comments on any profile

url: https://tomas-duclos-ssr-astro.vercel.app

How to run this project on local?

You need clone this project with:

git clone https://github.com/iTomasi/ssr-astro.git

then, go to “ssr-astro” folder and write in the terminal

npm install

Before to run the project you need a PostgreSQL database and cloudinary account for some environment variables.

# .env file on root folder

POSTGRES_HOST = 
POSTGRES_PORT = 
POSTGRES_USERNAME = 
POSTGRES_PASSWORD = 
POSTGRES_DB_NAME = 

PUBLIC_CLOUDINARY_CLOUD_NAME = 
PUBLIC_CLOUDINARY_UPLOAD_PRESET = 

once the environment variables are filled, you can run it

any questions you can contact me by discord (Tomas#7018), I will be happy to help you <3

Routes (Pages)

There are 5 pages which can be visited, some are public and others protected

/ (Public) => index page which show all registered users in the database

/profile?user=username (Public) => profile page, the “user” query is necessary to be able to get the account data and display it

/auth/sign-in (Protected) => sign in page, can only be accessed if you are not logged in

/auth/sign-up (Protected) => sign up page, can only be accessed if you are not logged in

/settings (Protected) => settings page, can only be accessed if you are logged, here you can edit your account data displayed on your profile

Preview

sharing profile preview

When share your profile will have an og img custom with your: Name, username and profile picture. The image will be regenerated every time the account is edited.

profile preview

You can write a comment to any profile!

Home Page

Home page

Description

Holaa, this is my first time participating in a hackathon xD, all the information is on GitHub, thank you very much for organizing this event i liked the experience and astro! :astro:. Good luck to everyone and that the best wins! ❤️