Arc Forumnew | comments | leaders | submitlogin
HN Clone Question
2 points by repos 4987 days ago | 1 comment
I just got my clone up and running - I used this fork of arc since it seemed to have more recent activity - https://github.com/rick2047/arc. I have a few, beginner questions. How / where is the data being stored? If I needed to move databases or servers, how would this happen. Further, is all the html/css served from news.arc? Is that what I would edit?

Thanks!



3 points by akkartik 4987 days ago | link

The data is stored in flat files under the arc/news subdirectory. So just moving the entire code directory should transplant data as well. All data is stored in memory and periodically saved to that directory (so you'll be fine as long as you don't need to add a second server).

the html and css are all in news.arc. html.arc has primitives for generating html, and the css is at http://github.com/rick2047/arc/blob/5b625b9f73/news.arc#L486

(For the most actively maintained forks, you might want to check out the arc wiki: http://sites.google.com/site/arclanguagewiki)

-----