The backend service partnered with snapfu web portal.
- NPM ^9.5.0
- NodeJS version ^18.15.0
- MongoDB version ^5
- database name: snapfu (can be change)
- collections:
- accounts
- connections
- snaps
Application uses Gmail API to send the verification email for singup process, you can authorize or link your Google account by:
- In your terminal:
git clone https://github.com/litemikx/snapfu-web-api.git
cd snapfu-api
npm install
- Create following colletions in your MongoDB database:
- accounts
- connections
- snaps
Note: See models folder for the collection structure.
- In your terminal:
node auth/mail/get_urls
-
You'll get the authorization link. Open the link on a browser, a consent window will show up and link to your Google account. Get the "code" in the URL. Best to run the snapfu-web-portal.
-
In your .env file, put the code there:
REACT_APP_AUTH_CODE=YOUR_CODE_HERE
- Once you start the server, it will create a file named gmail-credentials.json
Run in the terminal:
npm start
To see a demo or how this works, you can check my blog post tutorial here: How to Use: snapfu If you like this or want to support my side projects, like this one, you can: