mirror of
https://github.com/simon987/Much-Assembly-Required-Frontend.git
synced 2025-04-10 14:26:44 +00:00
34 lines
1.7 KiB
Markdown
34 lines
1.7 KiB
Markdown
# NOTE:
|
|
The frontend no longer needs to be installed separately as the php webserver has been migrated to a Java webserver, and the MySQL database to MongoDB. This repository has been merged into https://github.com/simon987/Much-Assembly-Required and is no longer being updated.
|
|
|
|
|
|
|
|
# Much-Assembly-Required-Frontend
|
|
Frontend files for the https://muchassemblyrequired.com/ game.
|
|
Information about the backend can be found [here](https://github.com/simon987/Much-Assembly-Required).
|
|
|
|
Installation instructions:
|
|
1. Install a PHP environnment and a MySQL server (e.g. XAMPP on Windows).
|
|
2. Configure the MAR database, using the installation script [database.sql](https://github.com/simon987/Much-Assembly-Required-Frontend/blob/master/database.sql):
|
|
```bash
|
|
$ pwd
|
|
~/Much-Assembly-Required-Frontend/
|
|
$ mysql -u root -p < database.sql
|
|
Enter password: # type your MySQL root user password if you set any
|
|
# on a fresh install the password is empty
|
|
# NOTE: on a fresh install you might have to run the command with sudo
|
|
# NEVER blindly run commands as sudo. Check the contents of the 'database.sql' file first!
|
|
```
|
|
|
|
Running instructions:
|
|
1. Start Apache and MySQL.
|
|
2. Start the backend (see [here](https://github.com/simon987/Much-Assembly-Required) for further details).
|
|
3. Run the frontend from localhost.
|
|
When using XAMPP, for example, you can place the frontend files in the ```xampp/htdocs/MAR``` folder,
|
|
and you can run the frontend by typing ```http://localhost/MAR``` in your web browser.
|
|
|
|
If you didn't use the MySQL snippet above to configure your database, you may need to change the configuration in /include/config.php.
|
|
|
|
HTML template by ajlkn
|
|
Pixel art for the 'Factory' sprite by harveydentmd
|