In this step you will:
If you are using the Microsoft Windows Operating System on your machine, you can use WSL2 as a development environment. Read more about installing and using WLS2.
Make sure to review the prerequisites before proceeding.
Using your terminal, navigate inside the directory where you want to download the project files.
Make sure that the directory is empty before running the command below.
Run this command to clone the project files.
git clone https://github.com/dotkernel/api.git .
To prevent future permission errors, certain folders must have their permissions set to 777. This way they assign everyone (owner, group, and other users) permissions to read, write, and execute.
It is safe to set these permissions as accessing the application files is dictated by the
.htaccessfile. Thepublicfolder is publicly accessible by design, so those files are served directly. Everything else is routed to theindex.phpfile.
chmod -R 777 data
chmod -R 777 public/uploads
chmod -R 777 log
The
-Rparameter is used to recursively apply the permissions to all subdirectories and files.