View Code? Open in Web Editor
NEW
SkillShare take-home exam
Shell 0.21%
TypeScript 2.40%
HTML 92.86%
JavaScript 4.53%
skillshare-shortener's Introduction
- Node Version >= 14
- MySQL Database
- Run
npm i
command
- Copy
.env.example
into .env
- Configure all relevant environment variables in
.env
- Build the dist with
npm run build
- Link the CLI with
npm link
- Start the server with
npm start
sk --help
Display all the available commands.
sk --shorten <url>
Shortens the given URL.
sk --disable <shortened url>
Disables the given URL.
sk --enable <shortened url>
Enables a previously disabled URL.
sk --stats <shortened url>
Display the given URL stats.
sk --list <shortened url>
Display all the shortlinks for a given URL.
- Environment variable
TYPEORM_SYNCHRONIZE
must be false in production.
- Environment variable
TYPEORM_LOGGING
is recommended to be false in production.
skillshare-shortener's People
Contributors
Watchers