christmantoro / sveltekit-mongodb

A simple web app that built with Svelte, MongoDB and TypeScript with features such as contact with nodemailer, realtime pagination and search.

Home Page:https://sveltekit-mongodb.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple Sveltekit App with MongoDB and TypeScript

Live Demo (The site may open slowly because I deployed the project to a free vercel account)

Table of Contents

Introduction

The main purpose of this project is to learn how to use MongoDB with Sveltekit so it is very simple and detailed with comments. I used MongoDB Atlas for the database and Nodemailer for the contact form.

sveltekit-mongodb

Features

  • Realtime Pagination and Search
  • Contact with Nodemailer

Installation & Setup

  1. Clone the repository
git clone https://github.com/bberkay/sveltekit-mongodb.git
  1. Navigate to the project directory and install the dependencies
cd sveltekit-mongodb
npm install
  1. Create a .env file like this in the root directory and add the following variables
MAIL_HOST = <your_host>
MAIL_PORT = <your_port>
MAIL_USERNAME = <your_username>
MAIL_PASSWORD = <your_password>
MONGO_URL = <your_mongodb_url>
  1. Run the project
npm run dev

About

A simple web app that built with Svelte, MongoDB and TypeScript with features such as contact with nodemailer, realtime pagination and search.

https://sveltekit-mongodb.vercel.app/


Languages

Language:Svelte 51.5%Language:TypeScript 27.0%Language:CSS 13.5%Language:HTML 4.0%Language:JavaScript 3.9%