Requirements

1. Get the .zip file or install using composer

Download the journal.zip package from the releases page.

Extract the downloaded zip file and upload it to your web server.

To install via composer (skip step 3):

composer create-project samihsoylu/journal --no-dev

Or clone this repository (recommended):

# Download the project
git clone [email protected]:samihsoylu/journal.git

# Enter directory
cd journal

# Get new tags from remote
git fetch --tags

# Get latest tag name
latestTag=$(git describe --tags `git rev-list --tags --max-count=1`)

# Checkout to the latest tag
git checkout $latestTag

2. Edit .env file

Make a copy of the .env.example file and name it .env and fill in the settings.

If your domain url will be example.com/my-journal then set your base url to BASE_URL = "/my-journal"

3. Run composer

Run the following command to install the required composer libraries for your Journal application.

composer install --no-dev

4. Point your web server to the /public directory

In most PHP projects, files that should be exposed to the web are placed in a public folder. While files that should be hidden are left in a private folder. This helps security and keeps the project better maintainable.

4.1 NGINX Web Server:

If you are running NGINX, you need to set a custom rewrite because the provided htaccess file won't work for you.

if (!-e $request_filename) {
  rewrite ^(.+)$ /index.php?url=$1 break;
}