-
Notifications
You must be signed in to change notification settings - Fork 6
Local Dev Setup
H. C. Kruse edited this page Jan 11, 2023
·
1 revision
- PHP 8.x
- php-zip
- php-intl
- php-gmp
- php-gd
- php-pdo_sqlite
- Composer
- NPM
- Clone the repository:
https://github.com/StarCitizenWiki/API.git
- Change into the newly created directory
- Install all required packages:
composer install
- If you are on Windows you may need to ignore gd:
composer install --ignore-platform-req=ext-gd
- Optional: Install the npm packages (if you want to update the styles):
npm install
- Create a file called
.env
with the following content:
APP_URL=http://localhost
APP_ENV=local
APP_DEBUG=false
APP_KEY=
LOG_LEVEL=info
# Set to true to skip MediaWiki OAuth and always login with an admin account
# DO NOT USE IN PRODUCTION
ADMIN_AUTH_USE_STUB=true
# SQLITE
DB_CONNECTION=sqlite
DB_DATABASE=db.sqlite
- Create the following empty file:
database/db.sqlite
- Run the following commands to get started:
php artisan key:generate
php artisan migrate
php artisan db:seed
- Import some data:
php artisan data:populate --skipGalactapedia --skipCommLinks --skipScUnpacked
- Start the API:
php artisan serve