Code Monkey home page Code Monkey logo

slim3's Introduction

Slim 3 Skeleton

This is a skeleton project for Slim 3 that includes Twig, TwigExtension, Flash messages, and Eloquent DB connection.

Users can sign-up and sign-in.

Create your project:

  1. First in your terminal: $ git clone https://github.com/arneanka/slim3 slim3
  2. Then move inside that directory, $ cd slim3
  3. Then run composer, $ composer update

Run it:

  1. Open terminal, $ cd slim3 (the root of the git clone)
  2. Type $ php -S 0.0.0.0:8888 -t public public/index.php
  3. Create the database file, $ touch resources/database.sqlite
  4. Open folder _installation and follow the steps.
  5. Browse to http://localhost:8888
  6. Sign in with [email protected] and password 123

Key directories

  • app: Application code
  • app: All class files within the App namespace
  • resources/views: Twig template files
  • cache/twig: Twig's Autocreated cache files
  • public: Webserver root
  • vendor: Composer dependencies

Key files

  • public/index.php: Entry point to application
  • bootstrap/settings.php: Configuration
  • bootstrap/dependencies.php: Services for Pimple
  • bootstrap/middleware.php: Application middleware
  • app/routes.php: All application routes are here
  • app/Controllers/Controllers/HomeAction.php: Home controller for the home page
  • resources/views/home.twig: Twig template file for the home page

TODO

  • So many things to do. Much todo

slim3's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

frankiez

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.