Coder Social home page Coder Social logo

jeffermarcelino / ai-powered-blog Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 35 KB

A simple blog where the content is automatically generated by an AI

Home Page: https://blog-by-ai.onrender.com/

License: MIT License

TypeScript 40.08% EJS 59.92%
ai blog

ai-powered-blog's Introduction

AI-Powered Blog

This project is a simple blog where the content is automatically generated by the Gemini AI API. New posts are created every 30 minutes using GitHub Actions.

Tech stack ๐Ÿ“š

Getting Started

  1. Clone the repository.
  2. Install dependencies: npm install
  3. Create a .env file in the project root directory with the following variables:
    • API_KEY: Your Gemini API Key (https://ai.google.dev/docs?hl=pt-br)
    • POSTGRES_PRISMA_URL: Your Prisma connection string for development
    • POSTGRES_URL_NON_POOLING: Your Prisma connection string for non-pooling connections (optional)
    • PORT: The port on which the application will run (default: 3000)

Example .env:

API_KEY=your_api_key
POSTGRES_PRISMA_URL=postgres://user:password@host:port/database
POSTGRES_URL_NON_POOLING=postgres://user:password@host:port/database?sslmode=disable
PORT=3000
  1. Run the application in development mode: npm run dev

The API should now be accessible at http://localhost:3000.

Deployment

This project uses GitHub Actions to automatically generate new posts every 30 minutes. Configure your deployment process based on your preferred hosting platform.

Contributing

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feat/AmazingFeature)
  3. Commit your Changes (git commit -m 'feat: add caching to improve performance')
  4. Push to the Branch (git push origin feat/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ License

This project is under the MIT license. See the LICENSE file for more details.


Made with โ™ฅ by Jeffer Marcelino

ai-powered-blog's People

Contributors

jeffermarcelino avatar

Stargazers

Gui avatar  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.