-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from lowdefy/test-one
chore: adjusted project structure and added README
- Loading branch information
Showing
27 changed files
with
5,791 additions
and
1,515 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.DS_Store | ||
**/.lowdefy/** | ||
**/.serverless/** | ||
**/.env | ||
**/node_modules/** | ||
**/dist/** | ||
!lowdefy/.lowdefy/cli.json | ||
**/coverage/** | ||
/auth0/globalConfig.json |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# 🪪 Lowdefy Business Card Example | ||
|
||
This Lowdefy example demonstrates a digital business card application integrating LinkedIn authentication and MongoDB for data storage. It utilizes the Auth.js LinkedIn provider and the MongoDB community plugin adapter for authentication, along with a custom plugin for QR code generation. | ||
|
||
The user interface is designed to efficiently present personal and professional details, akin to a traditional business card, but in a digital format. | ||
|
||
### 🗝️ Setting Up LinkedIn Authentication | ||
|
||
To use this example, you'll first need to configure a LinkedIn application for authentication. Detailed instructions can be found: | ||
|
||
- [Auth.js LinkedIn Provider Setup](https://next-auth.js.org/providers/linkedin) | ||
- [LinkedIn Developer Portal](https://www.linkedin.com/developers/apps/) | ||
|
||
## ⚙️ Running this example | ||
|
||
- Create a MongoDB cluster and get a URI connection string: | ||
- Create a free MongoDB database cluster hosted by [MongoDB Atlas](https://www.mongodb.com/try). | ||
- In the main cluster view, click "connect", then "Connect you application". This will give a MongoDB URI connection string. Use the credentials you just created. | ||
- You can read more about the [Lowdefy MongoDB connector](https://docs.lowdefy.com/MongoDB). | ||
- Set up your Linkedin app. | ||
- Clone this repository. | ||
- Create a `.env` file in your project folder and set the following environment variables: | ||
|
||
```.env | ||
LOWDEFY_SECRET_MONGODB_URI = <MongoDB URI> | ||
LOWDEFY_SECRET_LINKEDIN_CLIENT_ID = <Linkedin API Key> | ||
LOWDEFY_SECRET_LINKEDIN_CLIENT_SECRET = <Linkedin Secret Key> | ||
NEXTAUTH_SECRET = <Random auth signing secret> | ||
NEXTAUTH_URL = http://localhost:3000 | ||
``` | ||
|
||
- In the command console, navigate to your project folder and run the Lowdefy CLI: `pnpx lowdefy@4 dev`. | ||
|
||
## 🔗 More Lowdefy resources | ||
|
||
- Getting started with Lowdefy - https://docs.lowdefy.com/tutorial-start | ||
- Lowdefy docs - https://docs.lowdefy.com | ||
- Lowdefy website - https://lowdefy.com | ||
- Community forum - https://github.com/lowdefy/lowdefy/discussions | ||
- Bug reports and feature requests - https://github.com/lowdefy/lowdefy/issues | ||
- Discord - https://discord.gg/WmcJgXt | ||
|
||
## ⚖️ Licence | ||
|
||
[MIT](https://github.com/lowdefy/lowdefy-example-business-card/blob/main/LICENSE) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
163 changes: 0 additions & 163 deletions
163
app/plugins/plugin-business-cards/dist/auth/adapters/MongoDBAdapter.js
This file was deleted.
Oops, something went wrong.
21 changes: 0 additions & 21 deletions
21
app/plugins/plugin-business-cards/dist/blocks/QRCode/QRCode.js
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.