Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/bberkay/sveltekit-mongodb
- Owner: bberkay
- Created: 2023-04-01T18:29:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-25T15:25:09.000Z (6 months ago)
- Last Synced: 2024-06-25T17:11:57.478Z (6 months ago)
- Topics: mongodb, nodejs, nodemailer, svelte, sveltekit, typescript, webapp, website
- Language: Svelte
- Homepage: https://sveltekit-mongodb.vercel.app/
- Size: 664 KB
- Stars: 17
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
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.
Features
- Realtime Pagination and Search
- Contact with NodemailerInstallation & 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]