Skip to content
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

Open
wants to merge 2 commits into
base: development
Choose a base branch
from

Conversation

viktorcsimma
Copy link
Contributor

This worked for me without mysterious errors; I think I would even recommend it to students.

@@ -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,
Copy link
Contributor

@kdmnk kdmnk Feb 15, 2024

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`.
Copy link
Contributor

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`.
Copy link
Contributor

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.

@kdmnk kdmnk changed the title Update docs with a tutorial for native Windows installation XAMPP installation guide for Windows Feb 15, 2024
@kdmnk kdmnk added the on hold label Apr 16, 2024
@viktorcsimma viktorcsimma requested a review from a team as a code owner July 29, 2024 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants