π Source code of Skwal.net
If you want to contribute to skwal.net, you first need to understand the structure of the website.
There are a lot of informations about that in the wiki.
First, install xampp
Configure the server to point to the src folder.
Open phpMyAdmin and create a new database with a password.
Import the db.sql
file from the root of the repository.
Create an .env
file on the parent directory of /src
from the .env.sample
file, change the DB_NAME
, DB_USER
, DB_HOST
, and DB_PASSWORD
values to the corresponding values of your database and start the server (apache and mySql)
The database sample contains two users: skwal
and john
with the password password
.
Don't forget to import the new db.sql
file every time you git fetch
or git pull
.
-
Start by forking this repository
-
Then clone your fork to your local machine.
git clone https://github.com/your-username/skwal.net.git
-
Create a new branch
git checkout -b super-cool-feature
-
Then make your changes
-
If you made any changes to a css or js file, in the
π /src/php/variables.php
file, change the$version
variable to anything else. -
Once you're done, commit your changes and push them to the remote repository.
git add --all
git commit -m "Add super-cool-feature"
git push origin super-cool-feature
- Then, open a pull request on GitHub from your fork.
- Go to this link
- Click compare across forks
- On the right, on
head repository
select your fork - And on
compare
select the branch you just created - Click on
Create Pull Request
and submit your pull request
If you have any problem, don't hesitate to open an issue