Skip to content

faqihmadani/esports-news

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

E-Sports News

News website for an e-sports update

image

Tech Stack

  • React JS
  • Express JS
  • Tailwind CSS

Features

  • SignUp
  • Login
  • Create Post
  • Update Post
  • Delete Post

Installation

There are two folders provided for back-end and front-end website.

First, clone this repository

  git clone https://github.com/faqihmadani/esports-news.git my-project
  cd my-project

Back End

  1. Go to back-end folder
  cd /back-end
  1. Install package using npm
  npm install
  1. Create MySql database with two table, users and posts.
  • Users has id, username, email, password, img columns
  • Posts has id, title, description, category, img, date, uid (FK to users id)
  1. Go to db.js and set the connection to MySql
// db.js
  import mysql from "mysql"

  export const db = mysql.createConnection({
      host: "",
      user: "",
      password: "",
      database: ""
  })
  1. Run server
  npm start

Front End

  1. Go to front-end folder
  cd /front-end
  1. Install package using npm
  npm install
  1. Create supabase storage for store images. The storage must be named post-images

  2. Create .env file Add the following environment variables to your .env file

VITE_BASE_URL = your_backend_base_url
VITE_SUPABASE_URL = your_supabase_url
VITE_SUPABASE_KEY = your_supabase_key
  1. Run development server
  npm run dev

About

React Express esports blog website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages