Hi, I’m trying to contribute to issue #26723.
I cloned the repo on Windows and ran pnpm install and pnpm run build, but I’m not sure what is the correct way to run Directus locally for development.
Could someone guide me?
Hello @shashanth, after cloning the repo, run pnpm install from the root. Make sure you have a .env file inside the api folder, and that your database and Redis are running. If this is your first setup, run pnpm --filter api cli bootstrap. Then start the API with pnpm --filter api dev and in another terminal start the app using pnpm --filter app dev. You can access the app at http://localhost:8080, and any changes you make in the app will be reflected there (not on 8055). If you make changes in other packages, you’ll need to run pnpm run build for the changes to take effect.
Thank you will look into it, and thank you for the guidance , what i have to add for .env file inside api, since i am unable to find .env.example as you motioned above.