manifest / integrations / staff-domain-wordpress-plugin
Staff Domain - WordPress Custom Plugin
This is for Staff Domain - Task A - WordPress Custom Plugin
by Junmar Jose · github.com/jnmrclmbsjse/staff-domain-wordpress-plugin
★ 0stars
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/jnmrclmbsjse/staff-domain-wordpress-plugin/archive/refs/heads/master.zipReadme
Staff Domain - Technical Assessment
Task A - WordPress Custom Plugin
Task details
Build a small custom WordPress plugin (no page builders or off-the-shelf plugins doing the work for you) that:
- Adds a settings page in the WordPress admin where an administrator can enter and save a configuration value (e.g., a city name or an API key).
- Fetches data from a public API of your choice (e.g., weather, currency, or quotes API) using that setting.
- Exposes the fetched result on the front end.
Note from Junmar: This task I built by hand (traditional development and not AI-assisted)
How to run to project and review it
Requirements
- Docker
- Docker Compose
Steps
- Clone the repository
- Copy
.env.exampleto.envand update the values - Run
docker-compose up - Once the container is up, on your host machine run
docker compose exec wordpress composer install --working-dir=/var/www/html/wp-content/plugins/staff-domain-wordpress-plugin - or exec (
docker compose exec -ti wordpress bash) into the container, runcd wp-content/plugins/staff-domain-wordpress-pluginthen runcomposer install - Visit
http://localhost:{PORT_IN_ENV}in your browser - Configure the WordPress site.
- Go to Plugins > Installed Plugins > Staff Domain - WordPress Custom Plugin and click Activate.
- On the left menu, there will be a Staff Domain menu, click it.
- You will get redirected to the settings page. Paste your API key from https://api.nasa.gov/ and hit save.
- Go to the actual website e.g (localhost:8080), on the title part of the content you will see the APOD from NASA.