A web application designed to generate engaging social media posts for Facebook based on provided article links and languages. Built with Firebase, Express.js, and OpenAI's GPT-4 API.
This project allows users to input a URL and select a language (English or Norwegian)*. It then generates a concise, attention-grabbing social media post suitable for sharing on Facebook.
Check out the live version here:
Innlegg Generator
- Generate social media posts in either English or Norwegian.(under development)
- Uses OpenAI's GPT-4 to create relevant and engaging content.
- Simple and user-friendly interface.
- Firebase-hosted backend for handling requests securely.
- Node.js (v18)
- Firebase CLI
- OpenAI API key
-
Clone the repository:
git clone https://github.com/yourusername/innlegg-generator.git cd innlegg-generator
-
Install dependencies:
npm install
-
Set up Firebase functions: Navigate to the functions directory and install dependencies:
cd functions npm install
-
Configure environment variables: Set your OpenAI API key:
firebase functions:config:set openai.apikey="YOUR_OPENAI_API_KEY"
-
Deploy the Firebase functions:
firebase deploy --only functions
-
Start the development server locally you can use the live server extention from vs code or
firebase server
innlegg-generator/ ├── public/ # Frontend files (HTML, CSS, JavaScript) │ ├── index.html # Main HTML file │ └── script.js # Client-side JavaScript ├── functions/ # Backend Firebase functions │ ├── index.js # Express server and API endpoints │ └── package.json # Function dependencie └── .firebaserc # Firebase project configuration
###Contributing Pull requests are welcome! Please ensure any new features or fixes are well-documented and tested.
###License This project is licensed under the MIT License. See the LICENSE file for more details.