Git Product home page Git Product logo

facebook's Introduction

Facebook-clone

Tech Stack

Next.js ASP.NET Core Spring Boot Redis PostgreSQL MongoDB Docker

CLI commands

  • Redis: docker exec -it cache redis-cli -a <redis-password>
  • Mongodb: docker exec -it profile-database mongo -u <mongo-username> -p <mongo-password> --authenticationDatabase admin
  • Postgres: docker exec -it feed-database psql -U <postgres-username> postgres

Docker Commands

  • Remove all images: docker image rm $(docker images -aq)
  • Remove all containers: docker rm $(docker ps -aq)
  • Run all containers in dev: docker compose --env-file .env.dev up
  • Run all containers in prod: docker compose -f docker-compose.yml -f docker-compose.prod.yml --env-file .env.prod up

Environment Variables and Configuration Settings

.env

  • Has configurations for docker-compose.yml
  • Create .env.dev, .env.prod, etc based on .env.example
  • Configure all properties

appsettings.json

  • Has configurations for profile-service (ASP.NET Core Webapi)
  • Create appsettings.Development.json, appsettings.Production.json, etc based on appsettings.example.json
  • Configure CacheSettings:ConnectionString, DatabaseSettings:CollectionName, DatabaseSettings:ConnectionString and DatabaseSettings:DatabaseName

application.properties

  • Has configurations for feed-service (Spring Boot)
  • Create application-dev.properties, application-prod.properties, etc based on application-example.properties
  • Configure spring.datasource.url, spring.datasource.username, spring.datasource.password, spring.redis.host and spring.redis.password

All files must be created in the same directory as their example file

facebook's People

Contributors

echoaman avatar

Watchers

 avatar  avatar

facebook's Issues

Configurations

  • May or may not need another docker-compose.yml for prod
  • Update documentation (running services in dev env)

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.