Skip to content

dwgillies/webserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Fibonacci Webserver

This is my first crack at a RESTful fibonacci webserver. The repo can build and start a docker container than starts the web server using the makefile. To use the web server, try one of the URLs below:

Some thoughts

  • I decided to have checked-in versions of the javascript compilations of the code. I could have kept them out of the repo with .gitignore but since stack traces include the javascript line numbers and code the repo is more searchable this way. Also sometimes preprocessors have errors and you have to edit the compiled stuff, a disadvantage of preprocessors.

  • I made sure that the container would build and run without the /node_modules directory. It is currently going into the container and then being overwritten by an install and I'm looking for ways to avoid that duplication.

  • I found a node-prune tool to trim down /node_modules and might try to apply that next.

  • This is my first time writing a Dockerfile from scratch.