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:
-
The UI would follow ZhiHu.
-
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.
-
I'm a front-end developer, I will start from a simple view first.
-
The architecture for front-end would be Vue3, because it's easier for solo developer, and easier to scale later.
-
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.
-
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.
-
The password should be set first, or can't use git clone. the username is email address
-
Use Cursor IDE (integrated development environment).
Errors I met:
- npm create vue@latest
I'm not sure if it's the version problem, but the official site says node version should > 18 - 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😹)