Skip to content

Instantly share code, notes, and snippets.

@peplocanto
Last active May 22, 2023 10:50
Show Gist options
  • Save peplocanto/7caa0d0e353bc981ec1a274d4aea2471 to your computer and use it in GitHub Desktop.
Save peplocanto/7caa0d0e353bc981ec1a274d4aea2471 to your computer and use it in GitHub Desktop.

How to create your personal TS Playground

Supercharge your development process with this TypeScript playground, leveraging the benefits and advanced features of your IDE.


  1. Create a new directory called "console" and navigate into it:
mkdir console
cd console
  1. Initialize a new npm project with default settings:
npm init -y
  1. Install the necessary dependencies, including TypeScript, Nodemon, and ts-node:
npm i -D typescript nodemon ts-node @types/node
  1. Create a new file named "main.ts":
touch main.ts
  1. In your package.json file, add the following script under the "scripts" section:
"start": "nodemon main.ts"
  1. Now, you're all set! Run the following command to start the console:
npm run start

Voila! You can now utilize the "main.ts" file as your very own TypeScript-powered console.

Here is the stackblitz ( a playground of a playground?!? 🤔 )

Happy coding! 🖖💻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment