Inspired by the MadLibs game, this variant is for Developers.
- Docker.
- GNU Make (already on OSX, Linux)
- Port
8080
on host.
No current app functionality exists, only a mocked front-end server (NGINX).
The next step is to build out the backend server with database backed data.
make api-run
make terminal-run
Note: A work in progress. Right now, it just opens a Python interactive session.
The below examples use jQuery.
$.getJSON('http://localhost:8080/api/v1/libs/')
$.getJSON('http://localhost:8080/api/v1/libs/random')
These header Authorization
and X_CSRF_TOKEN
token aren't validated in the mock API but will be for the real API.
$.ajax({
url: 'http://localhost:8080/api/v1/libs/',
type: 'POST',
headers: {
'Authorization':'Basic bf00d8c4-2e17-4cb4-a346-f4c10b22f42b',
'X_CSRF_TOKEN':'e46f10f8-307c-4630-bec0-ab4a93c9cb16',
'Content-Type':'application/json'
},
data: JSON.stringify({ text: 'Whenever I see a {{lang}} programmers code, it makes me want to {{verb}} like a {{noun}}.'}),
dataType: 'json',
crossDomain: true
});
- Make sure you have NPM installed.
- Navigate into the
client
directory and runnpm install
. - Start the Angular server by running
ng serve
. - Navigate to
http://localhost:4200
to see the project running.