Skip to content

PickleBoxer/Simple-Shop-Concept

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Shop Concept

Simple Shop Concept using Symfony

Requirements

Getting started

Cloning the repository

$ git clone https://github.com/PickleBoxer/Simple-Shop-Concept
$ cd Simple-Shop-Concept

Installing dependencies

$ composer install

$ npm install

// compiling the assets
$ symfony run -d npm run watch

Changing the Default DATABASE_URL Value in .env

Change the .env file to setup the default DATABASE_URL per your developer environment

# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
#Docker:
# DATABASE_URL="mysql://root:[email protected]:3306/simple_shop?serverVersion=8&charset=utf8mb4"
#Laragon:
DATABASE_URL="mysql://[email protected]:3306/simple_shop?serverVersion=8&charset=utf8mb4"
# DATABASE_URL="postgresql://app:[email protected]:5432/app?serverVersion=15&charset=utf8"

Creating the Database

$ php bin/console doctrine:database:create --if-not-exists

execute a migration in database

$ symfony console doctrine:migrations:migrate

Loading Data Fixtures

$ symfony console doctrine:fixtures:load

Enabling TLS

$ symfony server:ca:install

OPTIONAL Local Domain Names

$ symfony proxy:start

$ symfony proxy:domain:attach my-domain

If you have installed the local proxy as explained in the previous section, you can now browse https://my-domain.wip to access your local project with the new custom domain.

Launching the Local Web Server

$ symfony server:start -d

Open the website

$ symfony open:local

Stop the Web Server

$ symfony server:stop

About

🛒 Simple Shop Concept build with Symfony

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published