Skip to content

Latest commit

 

History

History
61 lines (45 loc) · 1.21 KB

File metadata and controls

61 lines (45 loc) · 1.21 KB

XBYTE

A web application that allows users to create and share text-based content with others via unique links

Tech Stack:

  • HTML
  • CSS
  • Vanilla JavaScript
  • Node.js
  • MySQL

Features

  • Create and share text content via unique links
  • Secure user authentication with hashed passwords
  • Login system powered by JWT
  • Content stored using MySQL

Note: You need to install all required packages before running the web app

How to Use

Clone the repository

git clone https://github.com/utopiaLF/xbyte.git
cd xbyte

Make sure you have Node.js and MySQL installed

npm install express bcryptjs cors dotenv body-parser mysql2 jsonwebtoken jwt-decode path

Setup Database (MySQL)

  • Create the database and tables using the provided schema.sql
mysql -u your_username -p < schema.sql

№№ Create a .env file in the root folder and add:

JWT_SECRET=your_secret_password

This project is licensed under the MIT License. Have fun!

Make sure you're in the root folder

  • Start the server
node server.js

The server will run at: http://localhost:3000