Skip to content

jlbelanger/wardrobe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Jenny's Wardrobe

Jenny's Wardrobe is a re-creation of Cher's Wardrobe from the 1995 movie Clueless. View the site.

Development

Requirements

Setup

# Clone the repo
git clone https://github.com/jlbelanger/wardrobe.git
cd wardrobe

# Configure the environment settings
cp .env.example .env
cp cypress.config.example.js cypress.config.js

# Install dependencies
composer install
yarn install

# Generate key
php artisan key:generate

# Run database migrations
php artisan migrate

# Set permissions
chown -R www-data:www-data storage

# Create account with username "test" and password "password" (or reset existing account password to "password")
php artisan reset-auth

Copy /public/uploads from the live site.

Run

yarn start

Your browser should automatically open https://localhost:3000/

Lint

./vendor/bin/phpcs
yarn lint

Test

./vendor/bin/phpunit

Generate splash screens

npx pwa-asset-generator public/icon.png ./public/assets/img/splash --background "#000" --splash-only --type png --portrait-only --padding "20%"

Deployment

Essentially, to set up the repo on the server:

git clone https://github.com/jlbelanger/wardrobe.git
cd wardrobe
cp .env.example .env
# Then configure the values in .env.
composer install
php artisan key:generate
php artisan migrate
chown -R www-data:www-data storage

For subsequent deploys, push changes to the main branch, then run the following on the server:

cd wardrobe
git fetch origin
git pull
composer install
php artisan config:clear

Deploy script

Note: The deploy script included in this repo depends on other scripts that only exist in my private repos. If you want to deploy this repo, you'll have to create your own script.

./deploy.sh

About

Re-creation of Cher's Wardrobe from the 1995 movie Clueless.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published