Currently, there are three main options for setting up DevLess: Heroku, Docker or a traditional setup.
If you do not already have a Heroku account, you will need to create one and log in. DevLess can be run in the free tier, so it won't cost you a penny.
There is a video guide for the Heroku setup here
A DevLess image is available on the Docker hub as
eddymens/devless. The image includes a database. DevLess will listen on port 80.
Running Docker locally
- Install docker. Download from Docker's homepage or through your package manager.
- Run DevLess using
docker run -p 4545:80 eddymens/devless. To make DevLess run in the background, you can add the -
d --restart alwaysflags.
- Open a browser, and point it to localhost:4545.
Running docker in Docker Playground
- Go to http://labs.play-with-docker.com/. Bypass the captcha and click on the "Add new instance" on the left
- In the Terminal that just popped up, run
docker run -p 4545:80 eddymens/devless. Wait for the pull to complete.
- Above the terminal, a link with the numbers 4545 should have appeared. Click this to access your DevLess Instance.
This is not a recommended way to run DevLess. DevLess is built on top of PHP and uses a few extensions. The installation process for PHP with extensions is far from trivial. Borrowing the old saying: Here be dragons. Thou art forewarned.
We require a set of dependencies on the system level. How to install these depends on your OS.
- A SQL Database (MySQL, PostgreSQL or MS SQL Server)
- An HTTP server with PHP support, such as (Apache)[https://httpd.apache.org/) or Nginx.
- PHP 5.6.10 or greater.
- PHP Extensions:
- Clone the repo
- Change into directory
composer installto grab dependencies. Installing composer
$ cp .env.example .env) and update the database options within the file.
- Run migrations with
- Start up DevLess with .
- Go to localhost:8000 in your a browser. DevLess should be greeting you.