{"id":2701,"date":"2021-06-17T14:00:58","date_gmt":"2021-06-17T18:00:58","guid":{"rendered":"https:\/\/thewpgeek.com\/?p=2701"},"modified":"2021-06-25T15:14:27","modified_gmt":"2021-06-25T19:14:27","slug":"get-bedrock-working-on-local-by-flywheel","status":"publish","type":"post","link":"https:\/\/thewpgeek.com\/get-bedrock-working-on-local-by-flywheel\/","title":{"rendered":"Get Bedrock Working on Local by Flywheel"},"content":{"rendered":"\n

This is the very start of our journey creating a theme using Sage. Full disclosure – Im learning too! and thats why you should comment whenever you have a question or a better way of doing something. I have done a lot of research in each section and try to keep to best practices, so make sure to tell me when I don’t. <\/p>\n\n\n\n

A few prerequisites – Local is easy enough to install, Composer is probably the trickiest to get working, make sure it’s installed globally (type “composer” in your terminal and see if you get “command not found”) <\/p>\n\n\n\n

  1. Composer<\/a>” installed globally<\/li>
  2. Local By Flywheel <\/a>installed, and a new site setup. <\/li><\/ol>\n\n\n\n

    Great, now we need to make the new site you just set up work with Bedrock. A good place to begin will be to install Bedrock. Our first step will be to navigate to the correct folder in the terminal. If you are like me, then this is always a pain, so let’s cheat. If you are running on a Mac, follow along if not then you will have to do some changes to work with Windows… I haven’t developed on a. windows machine so unfortunately, I cant be much help. <\/p>\n\n\n\n

    Go to your Local Site and click the small arrow next to the path. This will bring up the finder in the correct location. <\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    Now, load up the terminal and type in “cd ” (note the space, this is important!)<\/p>\n\n\n\n

    cd <\/code><\/pre>\n\n\n\n

    You can now drag the “app” folder from the finder onto the terminal window and press enter, you will now be in the correct location in the terminal. See the video for an example. <\/p>\n\n\n\n

    composer create-project roots\/bedrock<\/code><\/pre>\n\n\n\n

    Awesome! if it begins downloading and installing things you are on your way – if you have an error you will likely now need to go and look into installing Composer globally. I will assume it all worked great!<\/p>\n\n\n\n

    Let’s do some cleanup, we can now go into the app\/ folder in finder and you should see one folder called “bedrock” and another called “public” Let’s delete the public folder.<\/p>\n\n\n\n

    \"\"<\/figure>\n\n\n\n

    Now we need to load the folder up into Visual Studio in terminal type <\/p>\n\n\n\n

    cd ..\/<\/code><\/pre>\n\n\n\n

    This will take us back to our root folder. We can now type <\/p>\n\n\n\n

    code .<\/code><\/pre>\n\n\n\n