Skip to content

ikotun-dev/warp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Warp

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.

Deployed with warp

GITLY on https://fly.io

Why warp?

  • 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

Installation

Using Docker
Runing the docker image
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.

warp

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"
To use warp in your project
#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

About

[WIP] static file server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published