Coder Social home page Coder Social logo

fergarram.online's Introduction

Are.na blog maker thing

So this tool kinda just appeared on my mind one night as a vision.

As I chased this vision I realized that god wanted me to blog like when I was 13.

And this is it. It's a simple static site genertor.

I like to see it as an are.na blog maker.

Or a feed/timeline/log/journal that works based on are.na channels and blocks.

See it as you will.

Just deploy it here:

Deploy with Vercel

Env Variables

DANGER_ARENA_TOKEN

You can get your auth token here.

SITE_CHANNEL_ID

Simple. It's the last part of your channel url. In my case I'm using are.na/fergarram/fergarram-online so I would use fergarram-online.

IS_VERCEL

Just set it to true.

THEME

Choose a theme. There are 5 options currently avaialbe:

  • default like fergarram.online (if empty it's set to default)
  • emo-kitty
  • olive
  • dark-olive
  • not-hacker-news

SHOW_THEME_TOGGLE

Default is true. Once you decide on a theme, you can turn it off.

You can change all these variables after deployment by going to the vercel enviroment settings

Optional UTC_OFFSET

There is an optional little clock on the top right of the page. To get the UTC offset of your city you can use this tool. Find the part that says Current Offset: UTC/GMT -6 hours. The offset is -6 in my case for Mexico City.

Local Development

Copy the .env.sample into .env and replace with your values as shown above.

DANGER_ARENA_TOKEN=XXXXXXX
IS_VERCEL=false
SITE_CHANNEL_ID=unique-slug-or-id-number
UTC_OFFSET=-6

Note that IS_VERCEL is set to false here.

You'll need the latest LTS version of node. Specifically because I use fetch.

If you don't have node installed you can download it here.

If you have nvm installed than you can use that instead (nvm install --lts).

Once installed just run:

node server.js

Running that will generate html files in the public directory.

Just open the public/index.html with your browser.

And that's it.

There aren't really any dependencies, it's just a node script that you run to build the html pages.

If you don't want to be running node server.js everytime you can use nodemon:

npm i -g nodemon
nodemon server.js

Hopefully this is simple enough.

fergarram.online's People

Contributors

fergarram avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.