How To Install MetaGPT - Build A Startup With One Prompt!!

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome back in today's video I'm going to show you meta GPT an app that promises to be your entire engineering organization I'm going to tell you about it I'm going to show you how to install it and then I'm going to show you how to use it let's go so this is the meta GPT GitHub repo and you'll find a bunch of information on it so I invite you to check it out so the first thing I want to show you is this diagram and this shows you what meta GPT will do as you see at the top it presents itself as an entire software company there's the boss who supplies the requirement the product manager who writes the PRD and revises it the architect the project manager the engineer and the QA all in this single project it is incredibly impressive and the costs are not much for one example it says it's going to be about 20 cents and two dollars for a full project it's pretty easy to install but I'm going to show you how to do it step by step I'm going to drop a gist in the description with every command that I'm using here so if you don't want to pause the video again and again you can find it there so I'm running this on a Windows machine but I already tested it on Mac and it works just fine there as well so the first thing you're going to do is open up console with Anaconda running and if you don't already already have Anaconda installed I highly recommend you do it because it provides you a really easy way to segment your different environments with python and so the First Command we're going to run is to create a new conduit environment conda create Dash and metagpt python equals 3.11.4 so we're using a very new if not the most recent version of python and we're going to proceed it's going to download all the dependencies and the requirements and then the next thing we're going to do is copy the command right here we're going to activate the environment conda activate meta GPT and now we can see it's activated because it says meta GPT right here in parentheses the next thing you're going to need to do is make sure that you have npm installed so we're going to type npm-version and I do not have it installed on my Windows machine so let's go ahead and do that so we're going to go to the nodejs.org website and we're going to click this Windows installer button we're going to download it and we're going to install it and then we have to restart our console so we're going to activate meta GPT again and now when we do npm-version we have the version so that means it's installed and if you're following Along on a Mac and and you have Homebrew installed you can simply type Brew install npm and it'll do the same thing the next thing we're going to do is install Mermaid so npm at mermaid-js slash mermaid-cli next we're going to clone the repository so git clone and then the repo URL which again will be in the description below and in the instructions that I provide in the gist and there we go now we change directory into that new repository so CD meta GPT next we're going to install all of the requirements so python-m pip install Dash R requirements.txt okay that's done that took about three to four minutes next we're going to use their setup.pi file to install I'm not sure if you normally need to run both commands of installing requirements.txt and the install file but I couldn't get it to work otherwise so we're going to do it here so python setup.pi install all right it's done that just took a few seconds next we need to create an open AI API key so go to openai.com and if you don't already have an account register then you're going to come to the API Keys page create new Secret key we're going to name it meta GPT and then create key and I'm going to copy it and I'm going to revoke this key before publishing this video then we're going to open a visual studio code we're going to go up click file and then open folder and then you're going to select the meta GPT folder from there on the left side you're going to look for the config folder click it and on config.aml go ahead and click it again so on line 10 you're going to uncomment it open AI API key and you're going to replace it with your API key you don't need the quotes and for the open API model you're going to use gpt4 if you have that available and of course if you don't if you only have GPT 3.5 you put that there instead go ahead save then we're going to switch back to console and we're ready to go so to create a new project all we type is Python startup.pi and then in a string we write what we want it to do so here I wrote something really simple write a CLI snake game based on Pi game and you can make it more complex of course and there's one more toggle that you can add to the end of this dash dash code underscore review true will actually make the code better but it'll cost more so it essentially goes through a number of iterations to get the code correct but we're not going to do that right now so I'm just going to hit enter and let's see what it does okay so I got the same exact error when I ran this on the Mac so it says module not found error no module name bs4 so we're going to go ahead and just install it python-m pip install bs4 so I'm not sure why they don't have this in the requirements.txt file they really should but it's an easy fix and now we're done so then we're going to go back to our previous command and run it again Python startup.pi and then the instructions and there it goes so we have the original requirements the boss has requested the creation of a command line interface snake game based on Pi game product goals create a simple easy to play CLI snake game and sure the game is built using pi game blah blah user stories competitive analysis competitive quadrant chart so this is actually extremely impressive and it really does hit every aspect of a software engineering organization and it actually prints out PNG versions of these and PDF versions so you can actually see the PRD file if you want it says is anything unclear no and then it starts writing the code so as it's doing that I'm going to switch back to visual studio code and so all of a sudden this workspace slash CLI snake game folder is going to be here so we go ahead and click it and then we click into CLI snake game and we see that it's starting to build out the code all right so interestingly this time it didn't actually output a PNG or a PDF file for the diagrams and for the PRD files but it did that on the Mac however it does have this prd.md file which seems to have all the same information it's just not as pretty I'm sure there is a way to convert all of this into a nice visual diagram but I'm not going to worry about that right now then if I switch back to our console it seems like it's done so it has all the files everything all written out perfectly now let's give it a try switching back to visual studio code workspace CLI snake game go into that and then we have main.pi and we're going to go ahead and click run at the top right and this is actually pretty hard but it seems to work the snake is getting longer it tells me the score one issue I see is that I can go off the map so I can obviously correct that as I get more detailed in my prompt so but it works and it works really well and it does all the research for me I'm going to go ahead and quit out of here now so the one thing that meta GPT is missing is iterating on existing code I know they already have an issue for it and they're aware of it so I think they're going to be adding that soon this is still very exciting and if you're looking to build a full project not just the code but actually the competitive analysis the PRD everything meta GPT is great so I recommend you check it out and if you want to compare this to another coding assistant that I found to be absolutely amazing which is called ader check out this video here if you like this video please consider giving a like And subscribe and I'll see you in the next one
Info
Channel: Matthew Berman
Views: 84,542
Rating: undefined out of 5
Keywords: chatgpt, ai, artificial intelligence, coding assistant, coding assistant ai, github, metagpt, meta gpt, ai coder, coder ai, ai coder free, ai tutorial, chatgpt tutorial, chatgpt explained
Id: uT75J_KG_aY
Channel Id: undefined
Length: 6min 36sec (396 seconds)
Published: Mon Aug 14 2023
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.