Also not recommended for production yet
This project was inspired by chimney https://github.com/aosasona/chimney.
It's also an attempt to deeply understand the inner workings of http/mimetypes/request lifecycle and more.
- Rewrites work by default. No special configuration is required.
- As tiny as possible as well
- Logs all incoming requests ( can be disabled )
- Accurate Mimetypes for all files
docker pull ikotun/warp:latest
docker run -p PORT:8080 ikotun/warp:latest
This should have warp running on the specified port. You can confirm by checking your browser.
Create a warp.yaml file in the root directory of your project.
This is an example
port : PORT
root : "index.html"
fallbackDocument : "404.html"
routes :
- "/login"
- "/signup"
#Pull warp
FROM ikotun/warp:latest
#copy your built project
COPY ./dist /public
#copy yout warp config file
COPY warp.yaml ./warp.yaml
#Expose 80
EXPOSE 8080