Url shortener app powered by Node.js + Express and React in TypeScript.
$ [email protected]:pROFESOR11/url-shortener.git
$ cd url-shortener
$ yarn run heroku-postbuild
-
Copy .env.example as .env
-
Fill with your own values
Open your favorite Terminal and run these commands.
First Tab:
$ yarn watch
Second Tab:
$ yarn dev
You don't need to explicitly run web, express serves build folder automatically. To make changes for front-end
$ cd web && yarn start
When changes done, then build to let express serve build folder
$ cd web && yarn && yarn run build
To deploy heroku,
- login to heroku from your terminal,
- push root folder to heroku,
- heroku will do the rest by running heroku-postbuild command in package.json
-
- React - JavaScript library for building user interfaces.
- react-query - Fetching, caching and updating asynchronous data
- Semantic-UI - Responsive front-end framework
- yup - Javascript object schema validation
- Url shortener - server
- Url shortener - web
- Duplicate slug check
- Url validation on front end
- Url validation on back end
- User authentication
- User-shortLink relation
- My link history
- Count and show how many times a link is used
MIT