Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
r1chard-lyu committed Apr 28, 2023
0 parents commit 5706589
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Deployment:

Environment: PHP 8.2.4 + MySQL 8.0.32

## Step 1: Clone

git clone https://github.com/Richard-YH/All-Together.git

## Step 2: Set up database connection information (local or remote)

Switch the comments to choose between local and remote settings in:

wanna-eat/assets/inc/Config.php
```php
<?php
// Localhost
define('DB_HOST', '127.0.0.1');
define('DB_NAME', 'all-together_database');
define('DB_USER', 'root');
define('DB_PASSWORD', '123456');

// Timezone - if not set, Chinese data retrieved from MySQL will appear as garbled text
date_default_timezone_set("Asia/Taipei");
```

## Step 3: Create the database

After creating the database, import the following SQL file to create the tables and test data:

wanna-eat/sql/build.sql

0 comments on commit 5706589

Please sign in to comment.