/react-todo-app

Create TODO App with ReactJs and Typescript

Primary LanguageTypeScriptCreative Commons Zero v1.0 UniversalCC0-1.0

Create TODO App with ReactJs and Typescript Exercise

This exercise is based on the FreeCodeCamp's tutorial How to Code Your React App with TypeScript - YouTube video: React & TypeScript - Course for Beginners. At all this is my first touch with TypeScript.

References

TODO Notes :)

Setup the Project

Install ReactJs and Typescript by Vite

npm create vite@latest
# ✔ Project name: … exc-ts-react-todo-app
# ✔ Select a framework: › React
# ✔ Select a variant: › TypeScript
cd exc-ts-react-todo-app/
npm install
  • Create start command in package.json file as follows:

    "scripts": {
        "start": "vite --host 0.0.0.0 --port 3000",
    }
  • Clean the src/ and public/ directories and start working on the project.

Install helpers: TailwindCSS and so on

npm i --save-dev tailwindcss postcss autoprefixer
npx tailwindcss init -p
npm i @tailwindcss/forms @tailwindcss/typography @tailwindcss/aspect-ratio
npm i @headlessui/react
npm i react-icons
npm i @heroicons/react
npm i react-beautiful-dnd
npm i @types/react-beautiful-dnd
npm i @hello-pangea/dnd

References:

Setup the Git Repository and Push to GitHub

git config --global init.defaultBranch master
git init
git add -A
git commit -m "Initial commit"
git branch -M master
git remote add origin git@github.com:metalevel-tech/exc-ts-react-todo-app.git
git push -u origin master

Automation with GitHub Actions