Code Monkey home page Code Monkey logo

oop-just-not-tetris's Introduction

Installing TypeScript

This is a skeleton app for people who want to use TypeScript. A docker-compose file is included for those who want to run it in a container.

You don't have to use the docker-compose file if you're fine with installing NodeJS and NPM locally. Feel free to delete it if that's the case.

Instructions

  1. Clone this repository to your pc
  2. Make sure you have NodeJS installed (preferably the LTS version). This will also install npm.
  3. Open a terminal window (command prompt, git bash, powershell)
  4. Check if NodeJS is installed by typing node --version into the terminal. It should print a line with something like v12.13.0.
  5. Check if NPM is installed by typing npm --version into the terminal. It should print a line with something like 6.12.0.
  6. Install the dependencies by running npm install from the project directory.
  7. Compile the project by running npm run build. If you want to run the build script everytime you make changes automatically, you can use npm run watch. To check out how this works, you can open the package.json file and take a look at the scripts section.
  8. Open the tsconfig.json file in this project.
  9. Search the TypeScript documentation and try to explain every line in the json file. Don't understand something? That's fine! Just don't copy stuff for the sake of filling up your answers.

Using Docker

If you're like me and you dislike NodeJS and NPM piling up heaps of folders on your pc, run TypeScript in Docker!

  1. Install Docker Desktop.
  2. Open a terminal window (Administrator Powershell on Windows, command prompt will not work).
  3. Clone this repository.
  4. Move to this folder inside the terminal.
  5. Run docker-compose up and open a new terminal OR run docker-compose up -d which allows you to work in the same terminal.
  6. Follow the steps from Instructions from step 4, but prefix all the commands with docker-compose exec ts-app.
  7. Close the docker container by pressing ctrl + c or docker-compose down, respectively for step 5

Or try:

docker run --rm -it -v ${PWD}:/app -w="/app" node:latest npm run watch

oop-just-not-tetris's People

Contributors

dwaard avatar eliotolhoek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.