Skip to content

🚀 new project

🎉 Create a new project

  1. Install copier.
  2. Create a new project from the template:
    copier gh:microsoft/cookie-doh <project-folder>
    

ðŸšķ First steps with your new project

Required dependencies:

Once you've created your new repository, the creation process will tell you to:

  1. Change directory and initialize git:

    cd <project-folder>  # direnv will ask you to type `direnv allow` (if you have direnv installed)
    git init
    

  2. Configure upstream / remote repository:

    a. if you have an existing repository:

    git remote add origin https://github.com/{{organization}}/{{project_name}}.git
    git pull origin main  # and resolve any conflicts
    
    To resolve conflicts, you can rename conflicting files (like README.md) and then solve conflicts, or, continue without pulling, commit your changes, and then pull with git pull origin main --allow-unrelated-histories and solve the conflicts then.

    b. or, create a new repository (install GitHub CLI if necessary)

    gh auth login
    gh repo create {{organization}}/{{project_name}} --private --source=. --remote=origin
    

  3. Install dependencies:

    poetry add <dependencies>
    poetry install
    

  4. Commit the initial files:

    git add .
    pre-commit install --install-hooks  # only if you chose to get pre-commit and have it installed
    git commit -m "init: initialize repo"
    git push -u origin main
    

  5. Happy coding! 🚀

ðŸŠķ Updating your project

In the future you can keep track of the latest changes of cookie-doh by running:

copier update
Get more options with copier --help and/or copier update --help.