From 0da2fd583e2ce5abc388a0f235550694c050c3db Mon Sep 17 00:00:00 2001 From: Aadil Ayub Date: Thu, 11 Jan 2024 11:56:04 +0500 Subject: [PATCH] Add wp-env config and instructions --- .wp-env.json | 4 ++++ README.md | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .wp-env.json diff --git a/.wp-env.json b/.wp-env.json new file mode 100644 index 0000000..e5862dd --- /dev/null +++ b/.wp-env.json @@ -0,0 +1,4 @@ +{ + "core": null, + "theme": [ "." ] +} \ No newline at end of file diff --git a/README.md b/README.md index 1ef8764..756b88d 100644 --- a/README.md +++ b/README.md @@ -9,4 +9,17 @@ Repo for practice task for Autonomic front-end recruitment. - Similarly, you can use any monospace font in place of the MD IO typeface the website is using for monospace text. - The breadcrumb on top doesn't need to be functionaly. You can use static text. - You don't need to copy all of the site's content. Feel free to use placeholder text. - - Majority of the site's styling should be implemented via `theme.json`. \ No newline at end of file + - Majority of the site's styling should be implemented via `theme.json`. + +## Running the site locally + +You can launch an instance of WordPress pre-loaded with this theme using the `wp-env` tool. + +```sh +$ npm -g i @wordpress/env +$ cd /path/to/theme/Repo +$ wp-env start +``` + +This will launch a WordPress local instance at http://localhost:8888. You can log into the dashboard at http://localhost:8888/wp-admin with `admin` as the username and `password` as the password. +