Skip to content

My personal site. Build with gulp, ts, docker, fastify. Many optimization techniques used here

License

Notifications You must be signed in to change notification settings

xfenix/xfenix.ru

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xfenix.ru

My single and only CI/CD pipe

My small site and some developers shitty things.
It consists of:

  • back — written in fastify. Basically it's a small github adapter api with cache. Dockerized
  • front — frontend page, dockerized inside alpine nginx
    • nginx.conf — all-in-one nginx config, router for back and front, http2 support, etc
  • Github Actions — my small continious depoyment variant

Developer flow

  1. Do once. Paste this code in browser console and run:
    localStorage.setItem('xfenix-apiaddr', 'http://0.0.0.0:8080/api/githubrepos/');
    localStorage.setItem('xfenix-bypasscache', '1');
  2. Run complete dev server (watch all resources, backend api, browsersync):
    cd front && npx gulp watch
  3. Develop.

Developer fixes

For node-sass trouble this helps: CXXFLAGS="--std=c++14" npm i