Cloning from git and setting up environment

Here are the steps required to perform when cloning Finding Nibbles once we have set up its infrastructure, which wont look too dissimilar to what we created in this spike.

  1. Create a .env file inside the root of the backend folder. Copy the contents of .env.example into the new .env file.

  2. cd to the backend directory and run docker-compose up --build in terminal to create your docker containers.

  3. Install Prisma dependencies:

    1. npm install prisma @prisma/client

    2. npm i prisma - d

    3. npx prisma db push

    4. npx prisma db seed

  4. Start up the nest backend: npm run start:dev

  5. In frontend/lib/core/dio_client.dart change the url to the correct version based on what simulator you are using (Mac or Android)

  6. In the frontend directory run flutter pub get to download dio dependencies.

  7. Ready to go!!

Last updated