Live Demo (The site may open slowly because I deployed the project to a free vercel account)
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.
- Realtime Pagination and Search
- Contact with Nodemailer
- Clone the repository
git clone https://github.com/bberkay/sveltekit-mongodb.git
- Navigate to the project directory and install the dependencies
cd sveltekit-mongodb
npm install
- 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>
- Run the project
npm run dev