Independent Development - 0. Target and preparations.

41 阅读46分钟

The target is to build an application like 知乎, and the PC web version is the first project. Here are the steps I need to do first: 

  1. The UI would follow ZhiHu. 

  2. Agile software development model would be choose, and the minimum viable project would just focus on "post" and "view", without sign up or sign in. 

  3. I'm a front-end developer, I will start from a simple view first. 

  4. The architecture for front-end would be Vue3, because it's easier for solo developer, and easier to scale later. 

  5. Github is not always available, so I use Coding.net instead. It's a Tencent devops platform (development & operations), also can help manage the project, design UI, host code.

  6. the page is a little laggy😤 But I don't want to find a better one, I spent too much time on choosing platform and tools.

  7. The password should be set first, or can't use git clone. the username is email address

  8. Use Cursor  IDE (integrated development environment).

Errors I met

  1. npm create vue@latest

    I'm not sure if it's the version problem, but the official site says node version should > 18
  2. Then I change the node version by nvm : nvm use 18.17.0
    I searched and found that Cursor should be opened in administrator mode.

After my changing the administrator mode , it worked after npm install and npm run dev:

I also choose TS, Pinia, Vitest and Cypress, which are all new to me (I worked as a front-end programmer for 4 years, and I never got in touch with unit test😹)