Versa Task

A simple web application based on the Craft CMS.

Installation

  1. Clone this repo:
git clone git@github.com:saidiadegoke/verse-task.git
cd verse-task
  1. Install dependencies
composer install
  1. Setup the database
  • Download the database file here
  • Create a database in your MySQL service using CLI create database versa-task or using phpmyadmin or other possible methods.
  • Import the downloaded sql file into the newly created database.
  1. Create .env file from the provided .env.example file
  • Enter the database name
  • Enter mysql username
  • Enter mysql password
  • Edit the variable PRIMARY_SITE_URL=http://localhost/verse-task/web to your local setting.
  1. Generate security keys
php craft setup/security-key
  1. From here, download, unzip and copy the content assets.zip file/folder to your assets folder located at path/to/verse-task/web/assets

  2. Type in the value of the constant PRIMARY_SITE_URL into your browser. For example: http://localhost/verse-task/web

  3. To view the Control Panel type http://localhost/verse-task/web/admin

  • Default username: verse-user
  • Default password: admin@123

Getting entries via endpoints

  1. Getting the entries:
`http://localhost/verse-task/web`/api/entries.json
  1. Getting a single entry:
`http://localhost/verse-task/web`/api/entries/{entryId}.json