Write Flow is a web application designed to streamline the process of writing and organizing content. It provides a user-friendly interface and a powerful backend for managing posts and user interactions.
Before you start, ensure you have the following installed:
curl -fsSL https://bun.sh/install | bash
powershell -c "irm bun.sh/install.ps1 | iex"
Clone the repository:
git clone https://github.com/vishal-kumar3/WriteFlow.git
cd WriteFlow
Build and run the application using Docker:
docker run --name postgres -e POSTGRES_DB=writeflow -e POSTGRES_USER=postgres -e POSTGRES_PASSWORD=12345 -p 5432:5432 -d postgres
bunx prisma migrate deploy
bun run dev
The application will be accessible at http://localhost:3000, and the Postgres database will be running in the background.
Clone the repository:
git clone https://github.com/vishal-kumar3/WriteFlow.git
cd WriteFlow
Install the necessary dependencies:
bun install
Set up your Postgres database:
writeflow
.bunx prisma migrate deploy
to migrate all the tables.Update your .env
file with the database connection details:
AUTH_TRUST_HOST=http://localhost:3000
NEXT_PUBLIC_HOST=http://localhost:3000
DATABASE_URL=postgresql://<username>:<password>@<host>:<port>/<database>
AUTH_SECRET=secret
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
Run the application:
bun run dev
The application will be accessible at http://localhost:3000.
After following either the Docker or Postgres setup instructions, the application should be up and running. You can access the application by navigating to http://localhost:3000 in your web browser.
Ensure you set the following environment variables in your .env
file:
AUTH_TRUST_HOST=http://localhost:3000
NEXT_PUBLIC_HOST=http://localhost:3000
DATABASE_URL=postgresql://postgres:12345@localhost:5432/writeflow
AUTH_SECRET=secret
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
The Write Flow app utilizes the following technologies and libraries:
Contributions are welcome! Please follow these steps:
git checkout -b feature/YourFeature
).git commit -m 'Add some feature'
).git push origin feature/YourFeature
).This project is licensed under the MIT License - see the LICENSE file for details.