XSocial is a simple social networking service with basic functionalities such as posting, liking, commenting, and viewing newsfeeds. It is designed to be easily hosted on a local machine or in the cloud.
Make sure you have Docker or a Docker-compatible container runtime installed locally to run XSocial.
Clone the XSocial repository to your local machine:
git clone https://github.com/maxuanquang/xsocial.gitXSocial use AWS S3 to store media files. Before running XSocial, you need to set up your environment variables by creating a .env file in the project root. Fill in the following details:
AWS_S3_BUCKET="example-bucket-name"
AWS_REGION="example-region-name"
AWS_ACCESS_KEY_ID="example-access-key-id"
AWS_SECRET_ACCESS_KEY="example-access-key-secret"
REACT_APP_API_SERVER="https://localhost"
GENERATE_SOURCEMAP=falseBuild the frontend of XSocial by running the following command:
make build_webInstall Caddy on your machine, then setup the Caddy server by running:
sudo make caddyTo start all XSocial services, run the following command:
make compose_upBefore running the services, make sure to migrate the database:
make up_migrationOnce the services are running and database is migrated, you can access XSocial by navigating to https://localhost in your web browser.
