Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bberkay/sveltekit-mongodb

A simple web app that built with Svelte, MongoDB and TypeScript with features such as contact with nodemailer, realtime pagination and search.
https://github.com/bberkay/sveltekit-mongodb

mongodb nodejs nodemailer svelte sveltekit typescript webapp website

Last synced: 23 days ago
JSON representation

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

Awesome Lists containing this project

README

        

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



  1. Introduction

  2. Features

  3. Installation & Setup

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
```bash
git clone https://github.com/bberkay/sveltekit-mongodb.git
```
2. Navigate to the project directory and install the dependencies
```bash
cd sveltekit-mongodb
npm install
```
3. Create a .env file like this in the root directory and add the following variables
```bash
MAIL_HOST =
MAIL_PORT =
MAIL_USERNAME =
MAIL_PASSWORD =
MONGO_URL =
```
4. Run the project
```bash
npm run dev
```



[email protected]