rumah-kosim-sveltekit Svelte Themes

Rumah Kosim Sveltekit

Bookstore Web for Database Project

šŸ“š RumahKosimBooks

A full-stack web application for managing books, built with SvelteKit, featuring user authentication and a robust book management system.

šŸš€ Technologies Used

Frontend

  • SvelteKit - Full-stack web application framework
  • Tailwind CSS - Utility-first CSS framework for styling
  • Axios - HTTP client for API requests

Backend

  • SvelteKit API Routes
  • JWT - JSON Web Tokens for secure authentication
  • bcrypt - Password hashing
  • MySQL2 - Database connector and query builder

āœØ Features

  • āœ… User authentication (Login & Register)
  • šŸ”’ JWT-based secure authentication
  • šŸ“š Book management system (CRUD operations)
  • šŸ”§ Admin Management (CRUD operations for administrative users)

āš™ļø Prerequisites

Before running the project, make sure you have:

  • Node.js (v14 or higher)
  • MySQL installed
  • npm, pnpm, or yarn

šŸ› ļø Installation

  1. Clone the repository:
git clone https://github.com/Samaele13/rumah-kosim-sveltekit.git
cd rumah-kosim-sveltekit
  1. Install dependencies:
npm install
# or
pnpm install
# or
yarn
  1. Set up your environment variables:
    Create a .env file in the root directory and add the following:
DATABASE_URL="mysql://user:password@localhost:3306/database_name"
JWT_SECRET="your_jwt_secret"
  1. Configure the database:

    • Create a MySQL database
    • Update the .env file with your database credentials
  2. Initialize the database:

    • Import the provided SQL scripts for database setup

šŸš§ Development

To start the development server:

npm run dev
# or
npm run dev -- --open

šŸ—ļø Building for Production

  1. Create a production build:
npm run build
  1. Preview the production build:
npm run preview

šŸ“‚ Project Structure

RumahKosimBooks/
ā”œā”€ā”€ src/
ā”‚   ā”œā”€ā”€ lib/
ā”‚   ā”‚   ā”œā”€ā”€ components/
ā”‚   ā”‚   ā”œā”€ā”€ utils/
ā”‚   ā”‚   ā””ā”€ā”€ db/
ā”‚   ā”œā”€ā”€ routes/
ā”‚   ā”‚   ā”œā”€ā”€ api/
ā”‚   ā”‚   ā””ā”€ā”€ [...]
ā”‚   ā””ā”€ā”€ app.html
ā”‚       app.css
ā”‚       app.d.ts
ā”œā”€ā”€ static/
ā”œā”€ā”€ tailwind.config.js
ā”œā”€ā”€ svelte.config.js
ā””ā”€ā”€ package.json

ā— Important

This project is not under any license and is created solely for academic purposes as part of coursework. Further development or usage of this project is strictly for learning and academic assignments only.

šŸ“ž Contact

Find the repository here: [https://github.com/Samaele13/rumah-kosim-sveltekit]

šŸ™ Acknowledgments

  • SvelteKit team for the amazing framework
  • Tailwind CSS for the utility-first CSS framework
  • All my mentor and friends in college that helped me to build this project
  • All other open-source contributors and libraries

Top categories

Loading Svelte Themes