EveryDocs Core
EveryDocs Core is the server-side part of EveryDocs. This project will contain an web interface and a mobile app in the near future. All in all, EveryDocs is a simple Document Management System (DMS) for private use. It contains basic functionality to organize your documents digitally.
Installation
- Make sure you have Ruby installed. For an installation guide, check here: Ruby installation guide
- If you haven't installed the Rails Gem, you can run the following command:
gem install rails
- Download the newest release and unzip it in a location of your own choice.
- Configure your database connection in config/database.yml. For this, there must be a corresponding database and an authorized user
- Configure the folder where documents are stored in config/settings.yml
- Install required dependencies by ruuning:
bundle install
- You might want to change the port of the application in start-app.sh.
- Setup your database by running:
rake db:migrate RAILS_ENV=production
. If there is an error, you might need to execute the following command, to set an encryption key:EDITOR="mate --wait" bin/rails credentials:edit
- Make sure that the environment variable 'SECRET_KEY_BASE' has a value.
If not, you can generate a key by running
rake secret
. You either set your environment variable to this value or put it in config/secrets.yml under production. - Start your Rails server:
./start-app.sh
- Access the application on http://localhost:1234 or configure any kind of proxy forwarding in your webserver.
- If you wish to use this application in your web browser, consider to install EveryDocs Web!
- Stop the application:
./stop-app.sh
Backup
To backup your application, you can simply use the backup functionality of your database. For example, a MySQL/MariaDB DBMS may use mysqldump.
Additionally you have to backup the place where the documents are stored. You can configure this in config/settings.yml. To restore, just put the documents back in that location.
Routes Documentation
To learn about the routes the API offers, run the following command: rake routes