Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bobdenotter/bolt-api-demo
https://github.com/bobdenotter/bolt-api-demo
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/bobdenotter/bolt-api-demo
- Owner: bobdenotter
- Created: 2021-11-19T09:00:05.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-10T12:21:59.000Z (almost 3 years ago)
- Last Synced: 2024-10-14T06:10:23.077Z (3 months ago)
- Language: Twig
- Size: 960 KB
- Stars: 0
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Bolt 4 standard project skeleton
================================Welcome! This is a Bolt 4 project, set up using `composer create-project`. If
you are the developer of this project, you can modify this README to the
specifics of your project. Below are the general instructions to set up a _new_
project, based off the same skeleton.Note: If you're updating from an earlier beta, read UPDATE.md for details.
---
Set up a new Bolt 4 project, using the following command, replacing
`myprojectname` with your desired project's name.```bash
composer create-project bolt/project myprojectname
```Navigate into the newly created folder, and configure the database in `.env`.
You can skip this step, if you'd like to use SQLite.```dotenv
# SQLite
DATABASE_URL=sqlite:///%kernel.project_dir%/var/data/bolt.sqlite# MySQL
DATABASE_URL=mysql://root:"root%1"@127.0.0.1:3306/four
```Set up the database, create the first user and add fixtures (dummy content):
```bash
bin/console bolt:setup
```Run Bolt using the built-in webserver, Symfony CLI, Docker or your own
preferred webserver:```bash
bin/console server:start
```or…
```bash
symfony server:start -d
symfony open:local
```Finally, open the new installation in a browser. If you've used one of the
commands above, you'll find the frontpage at http://127.0.0.1:8000/ \
The Bolt admin panel can be found at http://127.0.0.1:8000/boltLog in using the credentials you created when setting up the first user.
## Contributing
If you'd like to contribute, please check [Bolt's core repository](https://github.com/bolt/core/blob/master/CONTRIBUTING.md)
and read the ["Contributing to Bolt"](https://docs.bolt.cm/4.0/other/contributing) documentation page.