Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Codevate/public-api-blog-post-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Public OAuth API

A companion Symfony project for our blog post on securing client-side public API access with OAuth 2 and Symfony.

Getting started

Install dependencies:

composer install

Create the database and setup the schema:

php app/console doctrine:database:create --if-not-exists
php app/console doctrine:schema:update --force

Create a new company in the database, then generate an OAuth client:

php app/console app:oauth-client:create <company-id>

Create a new restaurant in the database, then generate a hashid for it:

php app/console app:restaurant:encode-id <restaurant-id>

Start the server:

php app/console server:run

Then follow the "Calling the API" section in the blog post.

About Codevate

Codevate is a specialist UK mobile app development company that builds cloud-connected software. This repository was created for a blog post about a custom web application development project and was written by Chris Lush.

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.