GithubHelp home page GithubHelp logo

socialnetwork's Introduction

Tuniconnect Web Application

Thank you for your interest in Tuniconnect! Follow the steps below to set up and run the web application on your local machine.

Prerequisites

Backend Setup

  1. Clone the backend repository: git clone https://github.com/azizmass/socialNetwork.git

  2. Navigate to the backend directory: cd socialNetwork

  3. Install the required dependencies: composer install

  4. Set up the database:

  • Create a new MySQL database named social_app
  • Run this 2 commands
    symfony console make:migrations
    symfony console doctrine:migrations:migrate
    

5.Generating Encryption Keys: To generate the encryption keys required for secure token authentication, follow these additional steps:

A. Install OpenSSL from [https://slproweb.com/products/Win32OpenSSL.html]

B. Open the OpensSSL terminal and navigate to the Symfony project's root directory.

C. Run the following command to generate the encryption keypair:

symfony console lexik:jwt:generate-keypair --overwrite

6.Start mySQL server

  1. Start the backend server: symfony console serve

  2. Start the Ratchet server in another terminal: php bin/console app:ratchet

Frontend Setup

  1. Clone the frontend repository: git clone https://github.com/Medaminegdoura/socialNetwork-front.git

  2. Navigate to the frontend directory: cd socialNetwork-front

  3. Install the required dependencies: npm install

  4. Start the frontend server: npm start

Please note: If you encounter any CORS-related issues, you may need to install the "Allow CORS" Google Chrome extension. You can find and install it from [https://chrome.google.com/webstore/detail/allow-cors-access-control/lhobafahddgcelffkeicbaginigeejlf?hl=en&fbclid=IwAR2xRuJcu5k0NL720DO6T6XNOuHYOSCcW6fqd25mNIJLLw1Pi7K9hpJwdsI]. Make sure to enable the extension while working on the application and disable it when you're done.

Accessing the Web Application

Once the backend and frontend servers are running, you can access the Tuniconnect web application by opening your browser and visiting http://localhost:3000.

That's it! You should now have the Tuniconnect web application up and running on your local machine.

If you encounter any issues during the setup process, please feel free to reach out to us for assistance.

Accessing the Web Application

Once the backend and frontend servers are running, you can access the Tuniconnect web application by opening your browser and visiting http://localhost:3000.

That's it! You should now have the Tuniconnect web application up and running on your local machine.

socialnetwork's People

Contributors

medaminegdoura avatar mahdichaabane avatar azizmass avatar chaimagharbi avatar sahnoun-houssem avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.