GitXplorerGitXplorer
t

settings-bundle-demo

public
1 stars
1 forks
0 issues

Commits

List of commits on branch main.
Unverified
60fa717eb8bb5add04995623e533dffa9f47c204

with login

ttacman committed 2 years ago
Verified
4b70f775ad10e290f436004a439e2dd1beb21ef1

Merge pull request #1 from tzunghaor/user_scope

ttacman committed 2 years ago
Unverified
f17491a2c9e0cc99ba872e791962519df76b0e4e

Added example for project scoped settings

ttzunghaor committed 2 years ago
Unverified
bd2800dfd52dc6bb283afbb98a2516b9f8236b1e

Added example for user scoped settings

ttzunghaor committed 2 years ago
Unverified
ff178dd4bf7d2206a6542bfd5f8c99c974ca088b

add a basic theme so we can navigate home

ttacman committed 2 years ago
Unverified
a2d8490b995cf79c9bf4b9b5f7e2d0dd516299a2

add heroku

ttacman committed 2 years ago

README

The README file for this repository.

settings-demo

A simple app showing integration with tzunghaor/settings-bundle

The default database is sqlite, change .env.local to use another DATABASE_URL

The project: Joksters

Jokers is a site for people to create joke-themed pages, e.g. golf jokes, and for others to "subscribe" to those pages.

Each themed joke site is a "project", the person who creates the project is the manager and can configure the tagline (and content).

Users can view these projects and configure their experience, like wanting the project to appear on their home page.

Site administrators (ROLE_ADMIN) can configure the site title, version, and welcome message.

One approach is to add the settings to the individual record. That is, the project record could have a title and tagline, the UserSubscriber record could ahve the "add to favorites" tag, etc. But this creates a lot of horizontal fields. Settings bundle adds the overridden properties to a table without cluttering up the entity record.

git clone git@github.com:tacman/settings-bundle-demo
cd settings-bundle-demo
composer install
bin/console doctrine:schema:update --force
npm install
npm run build
symfony server:start

Go to /settings/edit

For Symfony 6, use:

composer config repositories.settings '{"type": "vcs", "url": "git@github.com:tacman/settings-bundle"}' composer req tzunghaor/settings-bundle:dev-tac