If you have a pass Culture's computer, which has a proxy that adds a custom certificate, the install may fail.
In that case, you will need to install Nix as follows :
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install --ssl-cert-file '/Library/Application Support'/*/*/data/*cacert.pem
If you want more information or if you have a problem you can consult nix
package manager installation.
-
Install the executable
brew install direnv
If you want more information or if you have a problem you can consult DirEnv installation.
-
You will need to add hook into your user configuration (example:
~/.zshrc
). -
Start a new terminal to load the new configuration.
cd ./pass-culture-app-native # if needed
direnv allow
The last step can take several tens of minutes, especially the first time.
🚨 If you got an error when executing direnv allow
run it twice 🚨
We advise to follow the guidelines to set up your environment by selecting your Development OS and your target OS (Android/iOS).
Follow the steps here.
Follow the steps here.
To make sure your environment is set up correctly, try to run a template application with Create React Native App or with react-native-cli.