Clone of https://ngl.link/
- create account with oauth (for example: username as mystica)
- link will be generated (test.com/mystica)
- share the link on socials.
- anyone with that link will have form(text area, submit)
- people with the link can able to send text message
- users can able to view the text messages people sent, and mark as replied/delete/download them as image
- users can enable/disable the link
Uses
- google oauth
- get clientID, clientSecret from google developer console by creating a new project
- clientID looks like
generatedcode.apps.googleusercontent.com
- cloudinary
- for storing images (profile picture).
- get API Environment Variable from the dashboard after creating a account there.
- looks like
cloudinary://yourvariable
on the dashboard
create env.json
inside the server folder and add the env variables to it.
{
"clientID":"GOOGLE_CLIENT_ID",
"clientSecret":"CLIENT_SECRET",
"signKey":"secret",
"CLOUDINARY_URL": "API_Environment_variable"
}
-
go mod download
-
Install SQLite (Developed using SQLite Version - 3.32.2)
- run
npm install
- cd server and go run server.go
- cd client and npm start
- uses zap for logging
- sqlite
- cloudinary sdk for go
- viper for env variables
- google's oauth
- session-based auth