rahulnyk / fountain-pen

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

This is an editor that can help you write better, faster, using AI. The purpose of the editor is to help the writer build a develop collate research material, develop notes and content, and duild a narrative to convery about topic of the article.

Shows an illustrated sun in light mode and a moon with stars in dark mode.

Getting Started Dockerized

Step 1:

Get an OpenAI API key.

Once you have the API key:

## go to the repository folder.
cd path/to/this_repo
## copy .env.local.example to .env.local
cp .env.local.example .env.local

Update the .env.local file with your OpenAI API key.

Step 2:

Build a docker container

docker build -t fountain-pen .

Step 3:

Start a project

./run_project.sh PROJECT_NAME
# then
docker compose up

This script will set up the project directories for you and start the docker container.

the PROJECT_NAME can be an existing project name, or a new one. These projects are saved in the data folder.

NOTE: you might have to run chmod +x run_project.sh to make the run_project script executable.

Getting Started Without Docker

Step 1:

Get an OpenAI API key.

Once you have the API key:

## go to the repository folder.
cd path/to/this_repo
## copy .env.local.example to .env.local
cp .env.local.example .env.local

Update the .env.local file with your OpenAI API key, and your project name. each time you start a new project, the app will make the respective directories in the data folder.

Step 2:

Build and start:

npm i
npm run build
npm start

OR

Development server:

npm i
npm run dev

Step 3:

Open http://localhost:3000/editor in your browser.

The editor should look like this.

Shows an illustrated sun in light mode and a moon with stars in dark mode.

About

License:Apache License 2.0


Languages

Language:TypeScript 96.1%Language:Shell 1.6%Language:Dockerfile 1.5%Language:CSS 0.5%Language:JavaScript 0.4%