PDF monkey but open-souce.
If you want to use it please see run it locally
Donkey API routes (not perfect)
App url https://donkey.sambitsahoo.com
Features:
- Google OAuth2 login/ JWT Auth
- Template CRUD
- Rich template editing
- Template preview
- PDF Generation
- Custom style
Projected:
- UI refining
- more..
api:
- Node v14.x
- Express
- SQLite
- Typeorm
- Typescript
- Route Controllers
- Auth (JWT)/Google OAuth2
app:
- Vite
- React
- React router
- zustand
- Typescript
- Tailwind CSS
You need to have
yarn
installed on your machine as this is a monorepo and usesyarn woorkspaces
. create a.env
file in packages/app and addVITE_API=http://localhost:3000
crate a.env
file in packages/api and addREFRESH_TOKEN_SECRET
,ACCESS_TOKEN_SECRET
with any random value.
- clone
git clone https://github.com/soulsam480/pdf-donkey.git
- install deps
yarn
- Install postgres and add
.env
variables.
sudo apt update
sudo apt install postgresql postgresql-contrib
sudo -u postgres createuser --interactive
# name: username
# password: userpassword
# hit yes on all questions
createdb db_name # or your db name must be same with linux user name
# or sudo -u postgres createdb your_db_name
# needed to create extensions
grant all privileges on database db_name to user_name
# change user password for new postgres user
alter user user_name with password 'new_password'
# to use postgres properly in ubuntu we need to add a user
sudo adduser user_name # or your username, should be same with postgres user-role and db name
sudo -u user_name psql # log in to postgres with username
# install uuid extension
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
- Add .env variables
PGRES_USER=
PGRES_PASS=
PGRES_HOST=
PGRES_DB=
- Run it
# start server
yarn serve # starts both app and api
# build for deployment
yarn build
Any contributions are welcome. Reach me on soulsam480@hotmail.com