Git Product home page Git Product logo

reddit-clone's Introduction

Reddit Clone

From the root of the project run yarn to install dependencies for all projects


Component Library

All components built in isolation using react-native, transpiled for the web with react-native-web.

yarn components:storybook to develop the components buy themselves

yarn components:build to create the package that so it can be imported and used in the FE

yarn components:watch if you need to adjust and tweak the components as they are being used in the FE

Import the components to use from @packages/components


API Server (NOT WORKING)

Express server with a MongoDB backend, running together in a docker orchestration. (Needs Docker installed to run)

docker-compose up to build and launch the backend.


MongoDB from docker container

https://medium.com/@szpytfire/setting-up-mongodb-within-a-docker-container-for-local-development-327e32a2b68d

https://earthly.dev/blog/mongodb-docker/#:~:text=Running%20MongoDB%20in%20a%20Docker%20Container,-For%20development%2C%20it&text=You%20can%20pull%20the%20latest,Atlas%20or%20MongoDB%20Enterprise%20Server.&text=This%20will%20pull%20the%20latest%20official%20image%20from%20Docker%20Hub.

docker pull mongo

docker run
-d
--name reddit_clone_dev
-p 27017:27017
-e MONGO_INITDB_ROOT_username=mongo_dev
-e MONGO_INITDB_ROOT_PASSWORD=password
mongo

docker container ls

docker exec -it reddit_clone_dev bash

mongodb://mongo_dev:[email protected]:27017/

reddit-clone's People

Watchers

 avatar  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.