GithubHelp home page GithubHelp logo

helios2003 / fuego Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 367 KB

Blogging website made using Hono, React and PostgreSQL. Deployed on a serverless service using Cloudflare Workers.

TypeScript 96.51% JavaScript 2.08% HTML 1.06% CSS 0.35%
cloudflare cloudflare-workers hono prisma

fuego's Introduction

Fuego

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.

Setting up the Repository

  • Create a fork of the repository or clone the repository using the command:
git clone https://github.com/helios2003/Fuego.git

Backend

  • Change the directory into backend and run npm install.
  • Obtain a PostgreSQL database and enable connection pooling in it.
  • Rename .env.example to .env and wrangler-example.toml to wrangler.toml and fill the environment variables.
  • In .env add the original database URL and in the wrangler.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 command npx wrangler login.

Frontend

  • Change the directory into frontend and run npm install.
  • Run npm run dev to start the frontend.

Deployment

  • Login to the deployment using the following crendentials:
    Username: [email protected]
    Password: 111111.

Features to be Added

  • Adding images and videos to the blogs.
  • Adding tags to the blogs.
  • Following other users.
  • Upvotes and downvotes for the blogs.

References

fuego's People

Contributors

helios2003 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.