A simple web application based on the Craft CMS.
- Clone this repo:
git clone git@github.com:saidiadegoke/verse-task.git
cd verse-task
- Install dependencies
composer install
- 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.
- 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.
- Generate security keys
php craft setup/security-key
-
From here, download, unzip and copy the content
assets.zip
file/folder to yourassets
folder located atpath/to/verse-task/web/assets
-
Type in the value of the constant
PRIMARY_SITE_URL
into your browser. For example:http://localhost/verse-task/web
-
To view the
Control Panel
typehttp://localhost/verse-task/web/admin
- Default username:
verse-user
- Default password:
admin@123
- Getting the entries:
`http://localhost/verse-task/web`/api/entries.json
- Getting a single entry:
`http://localhost/verse-task/web`/api/entries/{entryId}.json