Simple service with registration which allows to create pseudonims for links and use short aliases instead of looong urls.
- JavaScript
- Node
- Some plugins
- TypeScript
- Esbuild for compilation
- Serverless (+some plugins)
- Node
- Amazon web service
- AWS Lambda
- Simple Email Service
- Simple Querry Service
- DynamoDb
- YML, JSON
- Download project
- Create .env with your credentials
- Type
npm run deploy
inside project dir. - Cross your fingers and hope everything will be fine
- Register new user by calling
auth/register
withemail
andpassword
in body - Verify with
auth/verify
. Give itemail
andverification_code
(which you recieved from email) - Login with existing
email
andpassword
combination to get bearer token withauth/login
. - Play a bit with links:
- Create new one with
link/createLink
. You should provide token in headers for that. also you need to addlink
,alias
and one of expiration types:- NEVER
- ONE_DAY
- THREE_DAYS
- ONE_WEEK
- ONE_TIME
- Create new one with
- Manage your links by calling
link/manageLinks
. Only authentification needed. Gives stringified link objects array - Deactivate link with
link/deactivateLink
. Token and link nickname (in body calledalias
) is all you need. - Use link. Route is pretty simple
link/uselink/{put here your alias}
. It has, as you see, one path parameter, but that is all he needs.
- You can change deployment stage by modifying script in
package.json
- Move your email from sandbox in ses for better experience
- All functions logged (except SQS one). It can be usefull for get your verification code even if ses sends it too long.
- Ask me for link for deployed app or script for adding test user without this checks