cursor 2024-09-06

2024-09-22  本文已影响0人  daydaygo

Code Smarter, Not Harder: Developing with Cursor and Claude Sonnet

Code Smarter, Not Harder: Developing with Cursor and Claude Sonnet | Juan Stoppa

brew install node

# 这一步耗时很久, 虽然设置了mirror
npm config -g set registry https://registry.npmmirror.com
npx create-next-app@latest # added 368 packages in 1m

后续使用 composer mode, 使用提示词自动生成代码

create an app what allows you to search any stock in the market and show them in a graph timeline with the value in the last 20 years.

make sure
- add any new library to package.json so I can easily install them
- any new file should be inside the folder /src/app
- modify /src/app files so the page loads the stock page directly
- use the free yahoo finance API and make the API call from the server side to avoid CORS issues
- the page should work if it's opened in a system where the default setting is dark mode

生成后, 运行查看效果

npm run dev
上一篇下一篇

猜你喜欢

热点阅读