Skip to content

Commit 7c11d41

Browse files
Add todo app functionality with Tailwind CSS
This is a scaffold for a todo app using react and Tailwind CSS
1 parent c780845 commit 7c11d41

31 files changed

+7072
-2
lines changed

.devcontainer/devcontainer.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"image": "mcr.microsoft.com/devcontainers/universal:2",
3+
"hostRequirements": {
4+
"cpus": 4
5+
},
6+
"waitFor": "onCreateCommand",
7+
"updateContentCommand": "npm install",
8+
"postCreateCommand": "",
9+
"postAttachCommand": {
10+
"server": "npm start"
11+
},
12+
"customizations": {
13+
"codespaces": {
14+
"openFiles": [
15+
"src/App.js"
16+
]
17+
}
18+
},
19+
"portsAttributes": {
20+
"3000": {
21+
"label": "Application",
22+
"onAutoForward": "openPreview"
23+
}
24+
},
25+
"forwardPorts": [3000]
26+
}

.devcontainer/icon.svg

Lines changed: 9 additions & 0 deletions
Loading

.github/workflows/deploy-pages.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
# Build job
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v4
15+
- name: "Install dependencies"
16+
run: npm install
17+
- name: "Build site"
18+
run: npm run build
19+
- name: "Deploy to GitHub Pages"
20+
uses: actions/[email protected]
21+
with:
22+
path: dist
23+
24+
# Deploy job
25+
deploy:
26+
# Add a dependency to the build job
27+
needs: build
28+
29+
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
30+
permissions:
31+
pages: write # to deploy to Pages
32+
id-token: write # to verify the deployment originates from an appropriate source
33+
34+
# Deploy to the github-pages environment
35+
environment:
36+
name: github-pages
37+
url: ${{ steps.deployment.outputs.page_url }}
38+
39+
# Specify runner + deployment step
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Deploy to GitHub Pages
43+
id: deployment
44+
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action

.gitignore

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
lerna-debug.log*
8+
9+
# Diagnostic reports (https://nodejs.org/api/report.html)
10+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
11+
12+
# Runtime data
13+
pids
14+
*.pid
15+
*.seed
16+
*.pid.lock
17+
18+
# Directory for instrumented libs generated by jscoverage/JSCover
19+
lib-cov
20+
21+
# Coverage directory used by tools like istanbul
22+
coverage
23+
*.lcov
24+
25+
# nyc test coverage
26+
.nyc_output
27+
28+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
29+
.grunt
30+
31+
# Bower dependency directory (https://bower.io/)
32+
bower_components
33+
34+
# node-waf configuration
35+
.lock-wscript
36+
37+
# Compiled binary addons (https://nodejs.org/api/addons.html)
38+
build/Release
39+
40+
# Dependency directories
41+
node_modules/
42+
jspm_packages/
43+
44+
# TypeScript v1 declaration files
45+
typings/
46+
47+
# TypeScript cache
48+
*.tsbuildinfo
49+
50+
# Optional npm cache directory
51+
.npm
52+
53+
# Optional eslint cache
54+
.eslintcache
55+
56+
# Microbundle cache
57+
.rpt2_cache/
58+
.rts2_cache_cjs/
59+
.rts2_cache_es/
60+
.rts2_cache_umd/
61+
62+
# Optional REPL history
63+
.node_repl_history
64+
65+
# Output of 'npm pack'
66+
*.tgz
67+
68+
# Yarn Integrity file
69+
.yarn-integrity
70+
71+
# dotenv environment variables file
72+
.env
73+
.env.test
74+
75+
# parcel-bundler cache (https://parceljs.org/)
76+
.cache
77+
78+
# Next.js build output
79+
.next
80+
81+
# Nuxt.js build / generate output
82+
.nuxt
83+
dist
84+
85+
# Gatsby files
86+
.cache/
87+
# Comment in the public line in if your project uses Gatsby and *not* Next.js
88+
# https://nextjs.org/blog/next-9-1#public-directory-support
89+
# public
90+
91+
# vuepress build output
92+
.vuepress/dist
93+
94+
# Serverless directories
95+
.serverless/
96+
97+
# FuseBox cache
98+
.fusebox/
99+
100+
# DynamoDB Local files
101+
.dynamodb/
102+
103+
# TernJS port file
104+
.tern-port
105+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
106+
107+
# dependencies
108+
/node_modules
109+
/.pnp
110+
.pnp.js
111+
112+
# testing
113+
/coverage
114+
115+
# production
116+
/build
117+
118+
# misc
119+
.DS_Store
120+
.env.local
121+
.env.development.local
122+
.env.test.local
123+
.env.production.local
124+
125+
npm-debug.log*
126+
yarn-debug.log*
127+
yarn-error.log*

.vscode/launch.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run application",
6+
"type": "node",
7+
"request": "launch",
8+
"cwd": "${workspaceFolder}",
9+
"console": "integratedTerminal",
10+
"runtimeExecutable": "npm",
11+
"runtimeArgs": [
12+
"run-script",
13+
"start"
14+
],
15+
"skipFiles": [
16+
"<node_internals>/**"
17+
]
18+
}
19+
]
20+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 GitHub
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,70 @@
1-
# simple-todo-app
2-
A simple todo app with Tailwind CSS
1+
# GitHub Codespaces ♥️ React
2+
3+
Welcome to your shiny new Codespace running React! We've got everything fired up and running for you to explore React.
4+
5+
You've got a blank canvas to work on from a git perspective as well. There's a single initial commit with the what you're seeing right now - where you go from here is up to you!
6+
7+
Everything you do here is contained within this one codespace. There is no repository on GitHub yet. If and when you’re ready you can click "Publish Branch" and we’ll create your repository and push up your project. If you were just exploring then and have no further need for this code then you can simply delete your codespace and it's gone forever.
8+
9+
This project was bootstrapped for you with [Vite](https://vitejs.dev/).
10+
11+
## Available Scripts
12+
13+
In the project directory, you can run:
14+
15+
### `npm start`
16+
17+
We've already run this for you in the `Codespaces: server` terminal window below. If you need to stop the server for any reason you can just run `npm start` again to bring it back online.
18+
19+
Runs the app in the development mode.\
20+
Open [http://localhost:3000/](http://localhost:3000/) in the built-in Simple Browser (`Cmd/Ctrl + Shift + P > Simple Browser: Show`) to view your running application.
21+
22+
The page will reload automatically when you make changes.\
23+
You may also see any lint errors in the console.
24+
25+
### `npm test`
26+
27+
Launches the test runner in the interactive watch mode.\
28+
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
29+
30+
### `npm run build`
31+
32+
Builds the app for production to the `build` folder.\
33+
It correctly bundles React in production mode and optimizes the build for the best performance.
34+
35+
The build is minified and the filenames include the hashes.\
36+
Your app is ready to be deployed!
37+
38+
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
39+
40+
## Learn More
41+
42+
You can learn more in the [Vite documentation](https://vitejs.dev/guide/).
43+
44+
To learn Vitest, a Vite-native testing framework, go to [Vitest documentation](https://vitest.dev/guide/)
45+
46+
To learn React, check out the [React documentation](https://reactjs.org/).
47+
48+
### Code Splitting
49+
50+
This section has moved here: [https://sambitsahoo.com/blog/vite-code-splitting-that-works.html](https://sambitsahoo.com/blog/vite-code-splitting-that-works.html)
51+
52+
### Analyzing the Bundle Size
53+
54+
This section has moved here: [https://github.com/btd/rollup-plugin-visualizer#rollup-plugin-visualizer](https://github.com/btd/rollup-plugin-visualizer#rollup-plugin-visualizer)
55+
56+
### Making a Progressive Web App
57+
58+
This section has moved here: [https://dev.to/hamdankhan364/simplifying-progressive-web-app-pwa-development-with-vite-a-beginners-guide-38cf](https://dev.to/hamdankhan364/simplifying-progressive-web-app-pwa-development-with-vite-a-beginners-guide-38cf)
59+
60+
### Advanced Configuration
61+
62+
This section has moved here: [https://vitejs.dev/guide/build.html#advanced-base-options](https://vitejs.dev/guide/build.html#advanced-base-options)
63+
64+
### Deployment
65+
66+
This section has moved here: [https://vitejs.dev/guide/build.html](https://vitejs.dev/guide/build.html)
67+
68+
### Troubleshooting
69+
70+
This section has moved here: [https://vitejs.dev/guide/troubleshooting.html](https://vitejs.dev/guide/troubleshooting.html)

index.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="Web site created using @vitejs/plugin-react"
11+
/>
12+
<link rel="apple-touch-icon" href="/logo192.png" />
13+
<!--
14+
manifest.json provides metadata used when your web app is installed on a
15+
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
16+
-->
17+
<link rel="manifest" href="/manifest.json" />
18+
<title>React App</title>
19+
</head>
20+
<body>
21+
<noscript>You need to enable JavaScript to run this app.</noscript>
22+
<div id="root"></div>
23+
<!--
24+
This HTML file is a template.
25+
If you open it directly in the browser, you will see an empty page.
26+
27+
You can add webfonts, meta tags, or analytics to this file.
28+
The build step will place the bundled scripts into the <body> tag.
29+
30+
To begin the development, run `npm start` or `yarn start`.
31+
To create a production bundle, use `npm run build` or `yarn build`.
32+
-->
33+
</body>
34+
<script type="module" src="/src/index.jsx"></script>
35+
</html>

jsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"moduleResolution": "node"
4+
}
5+
}

0 commit comments

Comments
 (0)