Fuego (Spanish for ๐ฅ) is a blogging website where users can publish their blogs and read other people's blogs. It is built using Hono as the serverless framework, PostgreSQL as database and React typescript as the frontend framework, Recoil for state management and Tailwind CSS for styling components.
- Create a fork of the repository or clone the repository using the command:
git clone https://github.com/helios2003/Fuego.git
- Change the directory into
backend
and runnpm install
. - Obtain a PostgreSQL database and enable connection pooling in it.
- Rename
.env.example
to.env
andwrangler-example.toml
towrangler.toml
and fill the environment variables. - In
.env
add the original database URL and in thewrangler.toml
add the pooled database URL. - Run the command to generate the database schema.
npx prisma migrate dev --name <commit-message>
- Run the command to generate the prisma client.
npx prisma generate --no-engine
- Run
npm run dev
to start the backend. - Or you can run
npm run deploy
after logging into Cloudflare using the commandnpx wrangler login
.
- Change the directory into
frontend
and runnpm install
. - Run
npm run dev
to start the frontend.
- Login to the deployment using the following crendentials:
Username: [email protected]
Password: 111111.
- Adding images and videos to the blogs.
- Adding tags to the blogs.
- Following other users.
- Upvotes and downvotes for the blogs.