How to run custom Open edX project in localhost

I have the edx-platform, ecommerce, ecommerce-themes, credentials and edx-theme directories. I have installed successfully tutor and devstack but I didn’t find the way to replace these custom directories. So, what is the correct way to replace them ?

After devstack runned successfully, I tried replacing the default directories with the custom ones but when I runned make dev.provision and then make dev.up but it didn’t work, and then the logs said that there were some missing dependencies.

You can take a look at this guide for preparing the development environment for developing an Open edX fork.
You do not need the devstack for most development cases.