Zouaoui-Montassar / Takwirti

MERN STACK , Tailwindcss , daisyui , socket-io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Installation

Install with npm

  • Setup the backend
  cd backend
  npm install
  • Setup the frontend
  cd frontend
  npm install

Environment Variables

To run this project, you will need to add the following environment variables to your .env file ( which you are going to create in the backend folder backend/.env )

  PORT = 4000
  MONGO_URI = your_mongo_uri
  JWT_SECRET = your_jwt_secret

you may want to change the frontend code depending on whether you chose a PORT other than 4000

Firebase Setup

Setup a firebase storage from the firebase console. Create a firebase.js file inside frontend/src/

import { initializeApp } from "firebase/app";
import { getStorage } from "firebase/storage";
const firebaseConfig = {
    apiKey: "",
    authDomain: "",
    projectId: "",
    storageBucket: "",
    messagingSenderId: "",
    appId: ""
  };
const app = initializeApp(firebaseConfig);
export const storage = getStorage(app);

Make sure to copy and paste your own firebase configuration parameters from the firebase console.

Run Locally

Start the backend server

  npm test

Start the frontend server

  npm start

License

Apache License 2.0

About

MERN STACK , Tailwindcss , daisyui , socket-io

License:Apache License 2.0


Languages

Language:JavaScript 98.6%Language:CSS 0.9%Language:HTML 0.6%