Skip to content

Fullstack Web App, for management news, and authentication

Notifications You must be signed in to change notification settings

M-Julius/4News-Backend

Repository files navigation

4News Backend API

This is a full-featured API for managing news articles, categories, and users. The backend is built using Node.js, Express.js, Sequelize ORM, and MySQL database. The API supports CRUD operations and image uploads for news and user profiles.

Table of Contents

Features

  • User authentication (login and register)
  • CRUD operations for news articles
  • CRUD operations for categories
  • CRUD operations for users
  • Image uploads for news and user profiles

Prerequisites

  • Node.js
  • npm/yarn
  • MySQL database

Installation

  1. Clone the repository:

    git clone https://github.com/M-Julius/4News-Backend.git
    cd 4News-Backend
  2. Install dependencies:

    npm install

    or

    yarn install
  3. Set up the database:

    npx sequelize-cli db:create
    npx sequelize-cli db:migrate

Configuration

Change a config.json file in the config directory and add the following environment variables:

{
    "username": "root",
    "password": null,
    "database": "dbname",
    "host": "127.0.0.1",
    "dialect": "mysql"
}

About

Fullstack Web App, for management news, and authentication

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published