This project is a Todo application built with Qwik, DaisyUI, Tailwind CSS, MongoDB for backend data storage, AuthJS for authentication, and Bun as all-in-one JavaScript runtime.
To get a local copy up and running, follow these simple steps.
- Node.js
- Bun
- MongoDB
https://qwik-todo-uphjdpakeq-ew.a.run.app/
Clone the repository
git clone https://github.com/lieranderl/qwik-todo-daisyui-tailwind-mongodb-authjs-bun.git
Install packages
bun install
Make env.local file:
AUTH_SECRET:
xxxxxxxxxxxxxxxxx
GOOGLE_ID:
xxxxxxxxxxxxxxxxx
GOOGLE_SECRET:
xxxxxxxxxxxxxxxxx
GITHUB_OAUTH_CLIENT_ID:
xxxxxxxxxxxxxxxxx
GITHUB_OAUTH_CLIENT_SECRET:
xxxxxxxxxxxxxxxxx
FACEBOOK_OAUTH_CLIENT_ID:
xxxxxxxxxxxxxxxxx
FACEBOOK_OAUTH_CLIENT_SECRET:
xxxxxxxxxxxxxxxxx
MONGO_INITDB_ROOT_USERNAME:
xxxxxx
MONGO_INITDB_ROOT_PASSWORD:
xxxxxx
MONGO_DOMAIN:
xxxxxxxxxxxxx.mongodb.net
MONGO_URI:
mongodb+srv://$MONGO_INITDB_ROOT_USERNAME:$MONGO_INITDB_ROOT_PASSWORD@$MONGO_DOMAIN/?retryWrites=true&w=majority
Start the server
bun start
The application allows you to add, delete, update and mark tasks as done. User authentication is handled by AuthJS, sessions stored in MongoDB. The tasks are stored in MongoDB, enabling persistence across sessions. Bun is used as the HTTP server to handle requests and responses.
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
Project Link: https://github.com/lieranderl/qwik-todo-daisyui-tailwind-mongodb-authjs-bun
This app has a minimal Cloud Run server implementation. After running a full build, deploy your app with:
bun deploy