From the course: Create Your Own Code Assistant with Llama 2, Node.js, and React.js
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Basic server and API
From the course: Create Your Own Code Assistant with Llama 2, Node.js, and React.js
Basic server and API
- [Instructor] Let's go ahead and set up our backend. I'm back in my code space. In our root directory, we're going to install a global command. So we're going to do npm install -G @nestjs/cli. This will install the command line interface for the Nest JS framework globally. We're then going to use that command line to create our backend. Once that finishes, we can clear the screen, and we will run Nest new backend. We're going to select NPM. We're going to let that create the backend folder and all of the associated files. This might take a minute. Now that that's finished, we can go ahead and clear the screen. CD into our backend folder. And let's take a look at what we've got. We'll open up explorer and open our backend folder. And here we've got our configuration files. It's TypeScript set up. We've got our TypeScript configuration. In our package JSON, we've got several scripts already built for us, and all of our dependencies are installed. We have a Nest-CLI-JSON, which defines…
Contents
-
-
-
Intro to large language models (LLMs)4m 49s
-
(Locked)
Llama 2 deep dive2m 1s
-
(Locked)
Setting up the Node environment6m 37s
-
(Locked)
Basic server and API3m 10s
-
(Locked)
Setting up the Llama's pen8m 20s
-
(Locked)
Data prep for Llama4m 32s
-
(Locked)
Loading the local code: Feeding the Llama5m 17s
-
(Locked)
Connecting the database to the API3m 4s
-
-
-
-
-