Skip to content

Getting Started

Savage edited this page Nov 21, 2018 · 11 revisions

You will need the following to get started:

  • A web server with URL rewriting
  • PHP 5.5 or newer
  • A SSL certificate will be required in production environments! Check out HTTPS Is Easy for help setting this up!

Installing

Clone the project:

git clone https://github.com/devsavage/slim-3-authentication.git your-project-name

Install the composer dependencies:

$ cd your-project-name && composer install

Inside your project folder, install the node dependencies using yarn or npm:

$ yarn install

Rename .env-example to .env

Update .env to your project's configuration

APP_ENV=development

You will need to update the APP_ENV variable to "production" when serving your application outside of a local environment!

Build assets (prodution or development)

$ yarn prod
$ yarn dev

You will also need Google reCAPTCHA API keys. Get them here.

If you would like to completely disable reCAPTCHA, see this page