Get support for garak/AutoCompleterSandbox
If you're new to LTH, please see our FAQ for more information on what it is we do.
Support Options
Unfortunately, there are currently no active helpers for this repository on the platform. Until they become available, we reccomend the following actions:
View Open IssuesTake a look to see if anyone else has experienced the same issue as you and if they managed to solve it.
Open an IssueMake sure to read any relevant guidelines for opening issues on this repo before posting a new issue.
Sponsor directlyCheck out the page and see if there are any options to sponsor this project or it's developers directly.
garak/AutoCompleterSandbox
PUGXAutoCompleter Sandbox
This is a demo project for PUGXAutoCompleterBundle.
It's basically a tipical Symfony project with some small additions.
It's using Select2 3.5.3 for JavaScript part. Not working with Select2 4.
Setup
- clone this repository
- run
export HOST_UID=$UID
- run
docker-compose build
- run
docker-compose up -d
- run
docker exec -ti autocompletersandbox_php_1 bin/console faker:populate
- you can login the container using
docker exec -ti autocompletersandbox_php_1 bash
- map in your hosts file
autocompletersandbox.local
on 127.0.0.1 - you'll then be able to browser
http://autocompletersandbox.local:8080
Testing
Run docker exec -ti autocompletersandbox_phpunit_1 bin/console faker:populate
.
Then you can test the application running docker exec -ti autocompletersandbox_phpunit_1 phpunit
.
Be aware, since testing are really basic and based on some hard-coded values in database. If tests fail, try to drop database, re-create it and re-populate.
The Demo
This demo shows a list of books, and let you add a new book. When inserting a new book, you can autocomplete the author by name.
All the code should be self-explainatory, and it's kept to bare minimum for the purposes of this demo. The only exception is the "add new" feature (see next point).
Add new
Beside the main feature (that is, of course, autocomplete), this demo also shows how to implement an "add new" feature. With such feature, you can let users add new elements to the existing ones. If you don't need such feature, you can remove the relevant parts of JavaScript (see comments inside the code).
Our Mission
We want to make open source more sustainable. The entire platform was born from this and everything we do is in aid of this.
From the Blog
Interesting Articles
-
Generating income from open source
Jun 23 • 8 min read
-
2023 State of OSS
Apr 23 • 45 min read ★
-
A funding experiment...
Aug 19 • 10 min read
-
But You Said I could
Aug 19 • 2 min read
Thank you for checking out LiveTechHelper |
2025 © lth-dev incorporated
p-e622a1a2