Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Learning Node.js and Typescript | 学学 Node.js 和 Typescript #12

Open
12 tasks
niracler opened this issue Jul 17, 2024 · 0 comments
Open
12 tasks

Learning Node.js and Typescript | 学学 Node.js 和 Typescript #12

niracler opened this issue Jul 17, 2024 · 0 comments
Assignees
Labels

Comments

@niracler
Copy link
Owner

niracler commented Jul 17, 2024

Summary

Publish one blog post per topic in two week. | 每两周更新一篇关于 Node.js 和 TypeScript 的博客(以自己的理解)

TODOList

Step 1: Node.js Basics (1-2 weeks)

  • Review Node.js Core Modules:

    • Focus on fs, http, path, and events modules.
    • Create small demo applications using each module.
  • Node.js Global Objects:

    • Understand global objects like process and Buffer.
    • Experiment with process APIs to handle environment variables.
  • Asynchronous Programming in Node.js:

    • Refresh knowledge on callbacks, Promises, and async/await.
    • Refactor a small Node.js project to use async/await.

Step 2: TypeScript Fundamentals (1-2 weeks)

  • Basic TypeScript Concepts:

    • Review data types, interfaces, and enums.
    • Convert a small JavaScript project to TypeScript.
  • Advanced TypeScript Features:

    • Understand generics, namespaces, and decorators.
    • Create examples demonstrating each of these features.
  • TypeScript Configuration and Tooling:

    • Learn about tsconfig.json options and their effects.
    • Set up TypeScript with tools like ESLint and Prettier.

Step 3: Intersection of Node.js and TypeScript (1-2 weeks)

  • Building a RESTful API:

    • Use Express with TypeScript to create a simple REST API.
    • Focus on type safety and error handling with middleware.
  • Testing Node.js and TypeScript Code:

    • Use testing frameworks like Mocha or Jest.
    • Write unit tests for existing Node.js/TypeScript projects.
  • Performance and Debugging:

    • Use Node.js built-in Profiler and Chrome DevTools.
    • Optimize code for better performance.

Books & Resources

@niracler niracler self-assigned this Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: In progress
Development

No branches or pull requests

1 participant