TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: What are good tips for personal project hygiene?

2 点作者 turkeygizzard超过 2 年前
I start a lot of seemingly one-off projects that I forget about, and then months later either want to reuse or share with friends. Unfortunately, it ends up being a hassle because I don&#x27;t remember all the hacks I used to get things off the ground so I have to reread things to figure out what commands to run in what order etc.<p>I&#x27;ve learned some good tips from my work experience, but I&#x27;ve never really done 0 to 1 in a work setting without there being some previous infrastructure for me to work off of.<p>Some of things I&#x27;m thinking of<p>- dockerize<p>- all env vars go in a .env file<p>- avoid absolute paths<p>- DDL should be in re-runnable migration files<p>Are there any other easy wins that people could recommend?

1 comment

Archelaos超过 2 年前
My most important advice: Put a README.txt document into the top project folder containing setup information consisely in one place. If necessary, include code snippets and biolerplate command examples to copy&amp;past from.<p>If the project is larger, you may also include MANUAL.txt, SETUP.txt (for detailled setup infos), TIPS.txt, TODO.txt, HISTORY.txt files or similar to keep the README.txt small.
评论 #33912445 未加载