delboy1978uk / bone-native-backend-api
A pre-configured Bone Framefork OAuth2 API for use with Bone Native
Installs: 2
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:project
Requires
- php: ^8.1
- ext-fileinfo: *
- ext-intl: *
- ext-json: *
- ext-pdo: *
- alymosul/exponent-server-sdk-php: ^1.3
- boneframework/bone: ^3.11
- delboy1978uk/bone-doctrine: ^2.0
- delboy1978uk/bone-mail: ^1.2
- delboy1978uk/bone-oauth2: ^1.6
- delboy1978uk/bone-open-api: ^1.3
- delboy1978uk/bone-paseto: ^1.1
- delboy1978uk/bone-push-notifications: ^1.0
- delboy1978uk/bone-settings: ^1.3
- delboy1978uk/bone-user: ^2.4
- delboy1978uk/bone-user-api: ^1.7
- delboy1978uk/cdn: ^2.0
- delboy1978uk/image: ^2.1
Requires (Dev)
- delboy1978uk/dev-tools: ^1.0
- roave/security-advisories: dev-latest
README
A pre configured Bone Framework app to provide a secure API for Bone Native apps.
requirements
- Git
- Docker
installation
We recommend using boneframework/lamp
. Clone it, cd
into the folder and delete the placeholder code folder. Then clone
this repository. You can add 127.0.0.1 awesome.bone
to your /etc/hosts
. This can be customised (see below)
git clone https://github.com/delboy1978uk/lamp myproject
cd myproject
rm -fr .git
rm -fr code
git clone https://github.com/delboy1978uk/boneframework code
cd code
rm -fr .git
git init
cp .env.example .env
cd ..
To start up the development server, simply run
bin/start
The server starts up, and you can see logs scrolling past in real time.
configuration
Open another tab, and run the following commands:
bin/terminal php
composer install
bone migrant:diff
bone migrant:migrate
bone migrant:generate-proxies
bone migrant:fixtures
bone assets:deploy
exit
Then browse to https://awesome.bone
, and you will see the site running.
mailhog
The development also has Mailhog running at https://awesome.bone:8025
, so you can configure any dev emails to use
SMTP port 1025
and all outgoing mails will appear in the Mailhog outbox.
mariadb
MariaDB is running, on host mariadb
(see docker-compose.yml
), and config/bone-db.php
).
docker php container shell
To "ssh" into your server in order to run PHP commands like composer etc, type the following in a fresh terminal window.
Type exit
to return to your local shell.
bin/terminal php
To shut down your server, CTRL-C
out, then type bin/stop
.
learn more
You can learn more about the Docker LAMP stack here https://github.com/delboy1978uk/lamp
You can learn more about Bone Framework here https://github.com/delboy1978uk/boneframework
You can learn more about Bone Native here https://github.com/delboy1978uk/bone-native