# How to generate Project.toml and Manifest.toml for a repository for be executed with Binder

**URL:** <https://discourse.julialang.org/t/how-to-generate-project-toml-and-manifest-toml-for-a-repository-for-be-executed-with-binder/64939>\
**Category:** General Usage\
**Tags:** package-manager\
**Created:** [July 19, 2021, 6:06pm UTC](https://discourse.julialang.org/t/how-to-generate-project-toml-and-manifest-toml-for-a-repository-for-be-executed-with-binder/64939 "2021-07-19T18:06:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![empet](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/empet/32/221303_2.png) [@empet](https://discourse.julialang.org/u/empet)\
**Post date:** [July 19, 2021, 6:06pm UTC](https://discourse.julialang.org/t/how-to-generate-project-toml-and-manifest-toml-for-a-repository-for-be-executed-with-binder/64939/1 "2021-07-19T18:06:51Z")

</div>

I have a local folder that contains a subfolder with two jl files, and a few Jupyter Notebooks in the root.  
I intend to push it to a github repository to use Binder for running the notebooks.  
My notebooks are using a few Julia packages like StaticArrays, etc, and some notebooks include my own jl files from the subfolder. At this moment  
these files are accessed like this:

```julia
include("utils/myfile.jl")

```

I don’t know how to generate the Project.toml and Manifest.toml for this future repository.  
In order to pass to Binder the deps how should be added all used Julia packages and my own jl files?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [July 19, 2021, 7:52pm UTC](https://discourse.julialang.org/t/how-to-generate-project-toml-and-manifest-toml-for-a-repository-for-be-executed-with-binder/64939/2 "2021-07-19T19:52:10Z")

</div>

There are two options to start creating a package:

1. [5. Creating Packages · Pkg.jl](http://pkgdocs.julialang.org/v1/creating-packages/)
2. [GitHub - invenia/PkgTemplates.jl: Create new Julia packages, the easy way](https://github.com/invenia/PkgTemplates.jl)

These will create an environment for your package.

Also, you can use `] activate <path to folder>` to initialize or activate an environment such as the one created by the above. You can then do `] add StaticArrays` which will then populate the Project.toml and Manifest.toml.

Also see [4. Working with Environments · Pkg.jl](http://pkgdocs.julialang.org/v1/environments/)

---

<div class="post-metadata">

**Author:** ![empet](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/empet/32/221303_2.png) [@empet](https://discourse.julialang.org/u/empet)\
**Post date:** [July 19, 2021, 8:11pm UTC](https://discourse.julialang.org/t/how-to-generate-project-toml-and-manifest-toml-for-a-repository-for-be-executed-with-binder/64939/3 "2021-07-19T20:11:26Z")

</div>

Thank you, @mkitti ! One aspect is not yet clear: my jl files from the subdirectory should be added to project, pointing out the path to them?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [July 19, 2021, 8:15pm UTC](https://discourse.julialang.org/t/how-to-generate-project-toml-and-manifest-toml-for-a-repository-for-be-executed-with-binder/64939/4 "2021-07-19T20:15:11Z")

</div>

If you have a folder “MyPkgFoo”, then the recommended thing is to have a file in that folder “src/MyPkgFoo.jl” which contains

```julia
module MyPkgFoo
    include("bar.jl")
    include("../utils/myfile.jl")
end

```
