Giter Site home page Giter Site logo

web-frontend-api-backend's Introduction

Sample code for the Web Frontend, API Backend talk

This is the example project whose code samples show up in the talk. It is mostly here for posterity but if you did want to get the code running, there are a few things you will need.

Database

The database is from the http://joind.in project; you will need to visit the joindin-api repo and run the patchdb.sh script from there, followed by its dbgen utility to generate some data you can work with.

API Backend

In the api directory, run composer install. This pulls in all the dependencies we'll need.

Your webroot is the public directory.

Web Frontend

In the web directory, run composer install.

In lib\ApiClient there are hardcoded URLs which point to where your API is.

Your webroot is the public directory.

References

Projects used in this example project to get me started really quickly:

  • Slim Framework is an excellent microframework from Josh Lockhart, also the author/curator of PHP The Right Way.
  • PureCSS helped me to hide how useless I am with anything frontendish, this project also uses one of their example layouts.
  • Guzzle is the API Client I used
  • Pimple is a super-simple dependency injection container that I used in the API backend.

Learning More

The best way to learn is by doing; this example project is a dumbed-down version of how the new joind.in site actually works. It's an open source project, so why don't you jump in and help? More info for contributors (current or future!) can be found here: http://m.joind.in/about

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.