Installation
Your first document
Wraft
Wraft is an open-source Contract Lifecycle Management (CLM) tool that's helps businesses produce their most important set of documents. Wraft helps author structured business content. From official letters to contracts, and beyond.
Our goal is to give people complete control over their most important documents, from drafting to collaborating and distributing.
Wraft is built on top of open formats, using markdown and JSON. This means your content is always accessible and future-proof.
Development
Pre-requisite
- Elixir 1.14
- Erlang/OTP 26.0
- Postgres
- Minio - S3 compatible object storage
- Pandoc
- Latex
.tools_version
will have the exact versions defined in it.
Initial setup
1 - Clone the repository
2 - Elixir & Erlang
As these 2 are defined in the .tool_versions
, asdf
will install the right versions with the following set of commands:
Please refer the given link for the installation of asdf-version-manager.
Add the following plugins to your asdf for elixir and erlang:
⚠️ For Ubuntu users, you also need to install the inotify-tools package.
inotify-tools
- command-line utilities to monitor file system activity
In macOS:
In Linux:
3 - Postgres
Select your OS from the options here and follow the instruction to install the latest version of postgres. Check your installation using:
Test your connectivity:
4 - Minio
Download the latest version of minio from here and follow the instructions to install based on your OS.
Run the following command from the system terminal or shell to start a local MinIO instance using the ~/minio folder. You can replace this path with another folder path on the local machine:
Open http://127.0.0.1:9000 in a web browser to access the MinIO Console.
5 - Pandoc
macOS
The easiest way to install it on OSX is via brew:
Linux
For Linux machines, follow the instructions below.
- Download the pandoc package that suits your device here
- To install the deb:
where $DEB
is the path to the downloaded deb.
These instructions are taken from Official Pandoc Documentations. You may refer if the official documentation if you have any doubts.
6 - Latex
To use Latex in OSX, install the MacTex Distribution. You can download MacTex here. Choose the correct version that supports your device, download and install. Latex editor comes with the distribution.
In Linux machines, we suggest to use Tex Live LaTeX distribution. Easiest way to install Tex Live distribution in
Linux/Ubuntu is to use apt-get
.
In case you need latex editor, type in:
7 - Running Wraft
To start your Wraft app:
Load env variables
Make a .env.dev file in the root directory and add the environment variables.
Refer .env.example
for the list of variables.
Source the environment variables from the file and start the server.
Setup the project
Start Phoenix endpoint
- With interactive shell
- Without interactive shell
Now you can visit localhost:4000
from your browser.
To get the API documentation, go here.
8 - Frontend
Clone the frontend repository separately.
Refer the README.md in the frontend repository for the setup.
9 - Default User
The default username and password
License
Wraft is open-source software licensed under the AGPLv3.