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.
- Clone the repository.
- Install dependencies: npm install
- 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
- Run the application in development mode:
npm run dev
The API should now be accessible at http://localhost:3000.
This project uses GitHub Actions to automatically generate new posts every 30 minutes. Configure your deployment process based on your preferred hosting platform.
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!
- Fork the Project
- Create your Feature Branch (
git checkout -b feat/AmazingFeature
) - Commit your Changes (
git commit -m 'feat: add caching to improve performance'
) - Push to the Branch (
git push origin feat/AmazingFeature
) - Open a Pull Request
This project is under the MIT license. See the LICENSE file for more details.
Made with ♥ by Jeffer Marcelino