├── .gitignore ├── DEPLOYMENT.md ├── README.md ├── deploy.sh ├── package.json ├── server ├── .env ├── Caddyfile ├── Dockerfile ├── README.md ├── build │ ├── config │ │ └── default.js │ └── src │ │ ├── app.js │ │ ├── controller │ │ └── shortUrl.controller.js │ │ ├── db.js │ │ ├── middleware │ │ └── validateResourse.js │ │ ├── models │ │ ├── analytics.model.js │ │ └── shortUrl.model.js │ │ ├── routes │ │ └── index.js │ │ └── schemas │ │ └── createShortUrl.schema.js ├── config │ ├── custom-environment-variables.ts │ ├── default.ts │ └── production.ts ├── docker-compose.yml ├── nodemon.json ├── package.json ├── process.json ├── src │ ├── app.ts │ ├── controller │ │ └── shortUrl.controller.ts │ ├── db.ts │ ├── middleware │ │ └── validateResourse.ts │ ├── models │ │ ├── analytics.model.ts │ │ └── shortUrl.model.ts │ ├── routes │ │ └── index.ts │ └── schemas │ │ └── createShortUrl.schema.ts ├── tsconfig.json └── yarn.lock ├── ui ├── README.md ├── UI_README.md ├── package.json ├── public │ ├── favicon.ico │ ├── index.html │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── robots.txt ├── src │ ├── App.test.tsx │ ├── App.tsx │ ├── components │ │ ├── Background.tsx │ │ └── URLShortenerForm.tsx │ ├── config │ │ └── index.ts │ ├── containers │ │ ├── HandleRedirect.tsx │ │ └── Home.tsx │ ├── index.css │ ├── index.tsx │ ├── react-app-env.d.ts │ ├── reportWebVitals.ts │ └── setupTests.ts ├── tsconfig.json └── yarn.lock ├── yarn-error.log └── yarn.lock /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | build -------------------------------------------------------------------------------- /DEPLOYMENT.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/DEPLOYMENT.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/README.md -------------------------------------------------------------------------------- /deploy.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/deploy.sh -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/package.json -------------------------------------------------------------------------------- /server/.env: -------------------------------------------------------------------------------- 1 | CORS_ORIGIN=google.com -------------------------------------------------------------------------------- /server/Caddyfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/Caddyfile -------------------------------------------------------------------------------- /server/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/Dockerfile -------------------------------------------------------------------------------- /server/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/README.md -------------------------------------------------------------------------------- /server/build/config/default.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/build/config/default.js -------------------------------------------------------------------------------- /server/build/src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/build/src/app.js -------------------------------------------------------------------------------- /server/build/src/controller/shortUrl.controller.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/build/src/controller/shortUrl.controller.js -------------------------------------------------------------------------------- /server/build/src/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/build/src/db.js -------------------------------------------------------------------------------- /server/build/src/middleware/validateResourse.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/build/src/middleware/validateResourse.js -------------------------------------------------------------------------------- /server/build/src/models/analytics.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/build/src/models/analytics.model.js -------------------------------------------------------------------------------- /server/build/src/models/shortUrl.model.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/build/src/models/shortUrl.model.js -------------------------------------------------------------------------------- /server/build/src/routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/build/src/routes/index.js -------------------------------------------------------------------------------- /server/build/src/schemas/createShortUrl.schema.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/build/src/schemas/createShortUrl.schema.js -------------------------------------------------------------------------------- /server/config/custom-environment-variables.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/config/custom-environment-variables.ts -------------------------------------------------------------------------------- /server/config/default.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/config/default.ts -------------------------------------------------------------------------------- /server/config/production.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/config/production.ts -------------------------------------------------------------------------------- /server/docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/docker-compose.yml -------------------------------------------------------------------------------- /server/nodemon.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/nodemon.json -------------------------------------------------------------------------------- /server/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/package.json -------------------------------------------------------------------------------- /server/process.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/process.json -------------------------------------------------------------------------------- /server/src/app.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/src/app.ts -------------------------------------------------------------------------------- /server/src/controller/shortUrl.controller.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/src/controller/shortUrl.controller.ts -------------------------------------------------------------------------------- /server/src/db.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/src/db.ts -------------------------------------------------------------------------------- /server/src/middleware/validateResourse.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/src/middleware/validateResourse.ts -------------------------------------------------------------------------------- /server/src/models/analytics.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/src/models/analytics.model.ts -------------------------------------------------------------------------------- /server/src/models/shortUrl.model.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/src/models/shortUrl.model.ts -------------------------------------------------------------------------------- /server/src/routes/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/src/routes/index.ts -------------------------------------------------------------------------------- /server/src/schemas/createShortUrl.schema.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/src/schemas/createShortUrl.schema.ts -------------------------------------------------------------------------------- /server/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/tsconfig.json -------------------------------------------------------------------------------- /server/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/server/yarn.lock -------------------------------------------------------------------------------- /ui/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /ui/UI_README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/UI_README.md -------------------------------------------------------------------------------- /ui/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/package.json -------------------------------------------------------------------------------- /ui/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/public/favicon.ico -------------------------------------------------------------------------------- /ui/public/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/public/index.html -------------------------------------------------------------------------------- /ui/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/public/logo192.png -------------------------------------------------------------------------------- /ui/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/public/logo512.png -------------------------------------------------------------------------------- /ui/public/manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/public/manifest.json -------------------------------------------------------------------------------- /ui/public/robots.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/public/robots.txt -------------------------------------------------------------------------------- /ui/src/App.test.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/src/App.test.tsx -------------------------------------------------------------------------------- /ui/src/App.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/src/App.tsx -------------------------------------------------------------------------------- /ui/src/components/Background.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/src/components/Background.tsx -------------------------------------------------------------------------------- /ui/src/components/URLShortenerForm.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/src/components/URLShortenerForm.tsx -------------------------------------------------------------------------------- /ui/src/config/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/src/config/index.ts -------------------------------------------------------------------------------- /ui/src/containers/HandleRedirect.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/src/containers/HandleRedirect.tsx -------------------------------------------------------------------------------- /ui/src/containers/Home.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/src/containers/Home.tsx -------------------------------------------------------------------------------- /ui/src/index.css: -------------------------------------------------------------------------------- 1 | html, body, #root { 2 | height: 100% 3 | } -------------------------------------------------------------------------------- /ui/src/index.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/src/index.tsx -------------------------------------------------------------------------------- /ui/src/react-app-env.d.ts: -------------------------------------------------------------------------------- 1 | /// 2 | -------------------------------------------------------------------------------- /ui/src/reportWebVitals.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/src/reportWebVitals.ts -------------------------------------------------------------------------------- /ui/src/setupTests.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/src/setupTests.ts -------------------------------------------------------------------------------- /ui/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/tsconfig.json -------------------------------------------------------------------------------- /ui/yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/ui/yarn.lock -------------------------------------------------------------------------------- /yarn-error.log: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/yarn-error.log -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/TomDoesTech/FS-URL-shortener-tutorial/HEAD/yarn.lock --------------------------------------------------------------------------------