Skip to content

rsmith-github/social-network-01edu

Repository files navigation

Social Network

A social network project with a React frontend and a Golang backend.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

Running the React Frontend

After cloning the directory and changing into the social-network directory

  • Run npm install to install dependencies
  • Run npm run dev to start the development server

Running the Golang Backend

After cloning the directory and changing into the social-network directory

  • Run go run . to start the server
  • Alternatively, run go build main.go && ./main to build and run the executable file

Using Docker

  • Make sure you have the Docker daemon installed
    To run the backend image using Docker, execute the following commands:
  • Run $ docker build -t social-network . (The -t specifies a pseudo-tty or terminal for logging)
  • Run $ docker run -p 8080:8080 -it social-network (The -p flag handles the port. The -it flags start a session with the container) Next, open another terminal for the frontend docker image and run the following:
  • Run $ docker build -t frontend -f frontend/Dockerfile . (The -f specifies the location of the dockerfile)
  • Run $ docker run -p 8080:8080 -it social-network

Built With

  • React
  • Golang
  • Docker
  • HTML5
  • Sqlite3

Authors

LUIS316, jasonasante, gymlad, rw.smith

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published