Skip to content

SAFAIDAM/Genihub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Genihub

project Guide for group:

first this project is a smalle community project (private one) that allows the platform users communicate with each others and create a com env between them.

this project is using node.js v18.17.0 version.

Installing Dependencies for Client and Server Directories

Client Directory

To install the dependencies for the client directory, follow these steps:

1. Open your terminal and navigate to the client directory:

cd client

2. Run the following command to install the react-router-dom package:

npm install react-router-dom

3. Run the following command to install the Thailwind-css package:

npm install -D tailwindcss postcss autoprefixer

then run this next command:

npx tailwindcss init -p

4. then go to the tailwind.config.js then replace the content : [] with the following code :

content: [
    "./index.html",
    "./src/**/*.{js,ts,jsx,tsx}",
  ],

5. copy this thailwind code then past it in the index.css of the vite env:

    @tailwind base;
    @tailwind components;
    @tailwind utilities;

This will install the necessary dependencies for client-side routing in your React application.

Server Directory

To install the dependencies for the server directory, follow these steps:

1. Open your terminal and navigate to the server directory:

cd server

2. Run the following command to install the required packages:

npm install nodemon jsonwebtoken mongoose bcrypt express

3. Run the following command to install the cors middleware:

npm install cors