Skip to content

lieranderl/qwik-todo-daisyui-tailwind-mongodb-authjs-bun

Repository files navigation

Qwik-Todo-DaisyUI-Tailwind-MongoDB-AuthJS-Bun Project

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.

Getting Started

To get a local copy up and running, follow these simple steps.

Prerequisites

  • Node.js
  • Bun
  • MongoDB

Test in action

https://qwik-todo-uphjdpakeq-ew.a.run.app/

Installation

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

Usage

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.

Built With

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

Contact

Project Link: https://github.com/lieranderl/qwik-todo-daisyui-tailwind-mongodb-authjs-bun

Google Cloud Run Server

This app has a minimal Cloud Run server implementation. After running a full build, deploy your app with:

bun deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published