# Weekly Setup

Each week, the Plutus Pioneer Program repository will be updated with the code used in that week's lecture.

You'll need to follow the steps below to get your development environment set up for the week.

Change into the pioneer repository

cd plutus-pioneer-program

Pull the latest changes from remote

git pull

Change into the directory for the current week

cd ./code/week01

View the Cabal project file.

vim cabal.project

Look for the following lines

source-repository-package
  type: git
  location: https://github.com/input-output-hk/plutus-apps.git
  tag: [some long string of letters and numbers]

Copy the tag value (the long string of letters and numbers)

Change into the plutus-apps directory

cd ~/plutus-apps

Your file structure may be different so you might have to tweak the command above.

Pull the latest changes

git pull

Check out the code at the given tag. Replace [tag] below with the actual tag you copied.

git checkout [tag]

While still in the plutus-apps repository, start a Nix shell. This will take a while the first time you run it. It won't take as long in subsequent weeks.

nix-shell

Start as many Nix shells as necessary for development; each time starting it from plutus-apps. Some things you might need a Nix shell for include: