-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XAMPP installation guide for Windows #428
base: development
Are you sure you want to change the base?
Conversation
@@ -22,6 +22,64 @@ There are several ways to set up your development server and environment. Basica | |||
|
|||
Note: to regenerate the docker configuration, use `php artisan sail:install --devcontainer` | |||
|
|||
### Windows (natively) | |||
On Windows, probably the optimal option with respect to performance is | |||
to simply install a web server and a database server natively on the system, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not natively, it's based on Xampp, which is a developer tool and also does a lot of "magic" in the background. We had issues with Xampp before, which did not support the newest PHP versions. Apparently, I see that currently this is not the case, however, we should make a note here to check it before even trying to set up.
4. Type `nvm install lts`. This command will install NPM for you. | ||
5. To be able to use it, you need to add the folder containing the NPM binary to the operating system's PATH variable (so that the command prompt will find it). | ||
- Check the installed version of Node.js with `nvm list` | ||
- Follow [these steps](https://www.mathworks.com/matlabcentral/answers/94933-how-do-i-edit-my-system-path-in-windows). Add the path `%USERPROFILE%\AppData\Roaming\nvm\vXX.XX.X`, where `XX.XX.X` is the version printed by `nvm list`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Avoid links to random pages which might not be available/updated later. Just mention adding it to the path, everyone can google it.
php artisan migrate:fresh --seed | ||
``` | ||
15. Finally, you can start your server! For this, type `php artisan serve`. (To stop the server, press Control-C. If you want to use the command prompt, you will need to open a new window.) | ||
16. Your local site can be accessed from the browser at `127.0.0.1:8000`. Log in with `[email protected]` and `asdasdasd`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The credentials are coming from .env just reference that.
This worked for me without mysterious errors; I think I would even recommend it to students.