A social network project with a React frontend and a Golang backend.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Node.js
- Go
- Docker
- Esbuild https://esbuild.github.io/
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
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
- 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
- React
- Golang
- Docker
- HTML5
- Sqlite3
LUIS316, jasonasante, gymlad, rw.smith