MEZ901 / InfoDev

A dynamic tech news blog for developers, featuring user authentication, article management, and interactive discussions.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InfoDev

A dynamic tech news blog for developers, featuring user authentication, article management, and interactive discussions.

Prerequisites

Before you begin, ensure you have met the following requirements:

  • Node.js and npm installed on your machine.
  • Git installed on your machine.

Getting Started

To get a local copy up and running, follow these simple steps.

  1. Clone the repository:
    git clone git@github.com:MEZ901/InfoDev.git
  2. Navigate to the project directory:
    cd InfoDev
  3. Install dependencies using npm:
    npm install

Configuration

You may need to configure some environment variables.

  1. Extract the .env file from the .env.example file:
    cp .env.example .env
  2. Update on the environment variables.

Database Setup

Make sure you have created and set up your database configuration in the .env file before proceeding with these steps.

  1. Run database migrations:

    npm run db:migrate
  2. Generate the Prisma Client code:

     npm run prisma:generate
  3. Seed the database with initial data (optional):

    npm run db:seed

Running the Application

To run the application locally, you can use the following command:

npm run dev

PS: You have two options to access the application:

  1. Browser-Sync Version (Auto-Refresh):
    • After running npm run dev, the Browser-Sync version of the application will be available at http://localhost:3001.
    • Browser-Sync will automatically refresh the page whenever you make changes to your EJS templates, providing a smooth development experience.
  2. Normal Version (Manual Refresh):
    • The normal version of the application can be accessed at http://localhost:3000.
    • In this version, changes to your EJS templates may require manual page refreshing in your web browser.

Feel free to choose the version that best suits your development needs..

PS 2: We got some issues with the Browser-Sync package, so we recommend using the normal version of the application temporarily.

About

A dynamic tech news blog for developers, featuring user authentication, article management, and interactive discussions.


Languages

Language:EJS 80.2%Language:JavaScript 19.8%Language:CSS 0.0%