For this spike create a directory named FindingNibbles-Spike. Go to your terminal and cd into this directory. Firstly, we are going to setup our backend. Run the following two commands, for the second command when prompted with how you would like to create your nest project select npm.
npm i -g @nestjs/cli
nest new --strict backend --skip-git
Now open VS Code and open the FindingNibbles-Spike directory. Here in VS Code terminal move to the backend directory (cd backend).
For this project we are going to be using Prisma as our Database Integration Language. You are going to learn more about Prisma in section 3. But for now in the VS Code extension section download the Prisma extension. After this run the following three commands.
npm install prisma @prisma/client
npm i prisma - d
npx prisma init
All of the dependencies for our backend are now set up. Lets make our front end. Move back to the root directory of our project (cd .. ). We are now going to create our frontend directory for flutter. The following command will create this flutter directory.