A Fullstack Javascript blog with Generative AI!
Explore the docs »
View App
·
Report Bug
·
Request Feature
A React frontend and Cloudflare workers backend application offering features that replicate Medium, the popular blogging platform.
Features:
Unique Features:
.env
cd backend
npm install
npm run prisma:migrate
npx prisma generate
npm run dev
Note: wrangler.toml is the environment configuration file for a serverless backend. .env is used by Prisma for connection pooling. Ensure you configure both environment files accordingly.
cd frontend npm install npm run dev
> Note: `frontend/src/config.ts` contains `BACKEND_URL`. If you need your frontend to point to local backend server, uncomment `export const BACKEND_URL = "http://localhost:8787"`.
#### Running Frontend and Backend Concurrently
To make the developer experience smoother, you can now run both the frontend and backend simultaneously using a single command from the project root.
##### Steps:
- Ensure you have project root folder. install packages with
```sh
npm install
npm install:all
npm run dev
This command will start both the frontend and backend servers simultaneously.
For additional customization options and detailed information, please refer to the concurrently documentation.
FF_ENABLE_AI
= true in config.tsOPENAI_API_KEY
in wrangler.toml file in the backend. (https://platform.openai.com/api-keys)We welcome contributions from the community! To contribute, follow these steps:
git checkout -b feature/[feature-title]
).git commit -am 'Add brief meaningful commit message'
).git push origin feature/[feature-title]
).For major changes, please open an issue first to discuss what you would like to change.
Read our contribution guidelines for more details.
Distributed under the MIT License. See LICENSE.txt
for more information.
Aadesh Kulkarni - aadeshkulkarni08@gmail.com
Project Link: https://github.com/aadeshkulkarni/medium-app
Discord: https://discord.gg/TmRYQhca