Giter Site home page Giter Site logo

social-media's Introduction

social-network

Description

The project is a Facebook-like social network with features such as followers, profiles, posts, groups, notifications, and chats. It uses React as the frontend framework and Go with SQLite for the backend. Secure authentication using sessions and cookies is implemented, and real-time messaging is enabled through WebSockets. The project is containerized with Docker Compose for easy deployment.

Usage

Manually

  1. Open the first terminal in the root of this project and navigate to the backend directory using cd server.
  2. Start the server using go run main.go (the first start may take some time).
  3. After a successful start of the backend, open the second terminal and navigate to the frontend directory using cd client.
  4. Download all dependencies using npm install.
  5. After downloading, start the development server using npm start.
  6. Connect to localhost:3000.

Using docker-compose

  1. In the root of this project, use docker-compose up (the first download and build may take a couple of minutes).
  2. After starting two services, frontend and backend, you can connect to the server at localhost:3000.
  3. To turn off services, use Ctrl+C.

Small advice for audit

  • All actions with users can be performed on the Profile page.
  • To message someone, you should use the Users page.
  • You can create a group only on the Groups page.
  • All requests (follow, join, invite) can be accepted or rejected on the Notifications page.

Filesystem structure

.
├── client <- frontend
│   ├── public
│   └── src
│       ├── additional-functions
│       ├── assets
│       ├── components <- folder with all components
│       └── hooks
└── server <- backend
    ├── db
    │   ├── database <- folder with the database file
    │   └── migrations
    └── packages
        ├── controllers
        ├── errorHandler
        ├── httpRouting
        ├── models
        ├── session
        ├── sqlite
        ├── utils
        ├── validator
        └── webSocketChat

social-media's People

Contributors

mercey123 avatar zewasik avatar kasparpartel avatar schnellied avatar ratsepmikk avatar estboi avatar dependabot[bot] 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.