Skip to content

Latest commit

 

History

History
51 lines (41 loc) · 1.68 KB

README.md

File metadata and controls

51 lines (41 loc) · 1.68 KB

JSHunt

JSHunt is a curation of the best products in JavaScript world. Based on Product Hunt.

JSHunt WebApp

Built following Node, ReactJS and React Native free courses on Rocketseat.

Running Application

Method 1

Method 2

  • Install docker
  • git clone this repo
  • Go to backend folder and run the following commands:
# create backend image
docker build -t backend .

# create a network to connect services
docker network create jshunt

# run mongodb container
docker run --name mongodb --network=jshunt -d mongo

# run backend container
docker run --name backend --network=jshunt -e MONGODB_HOST=mongodb -p 3001:3001 --entrypoint npm -d backend -c run demo
  • Go to frontend folder and run the following command:
# create frontend image
docker build -t frontend .

# run frontend container
docker run --name frontend -e BACKEND_ADDRESS=localhost:3001 -p 3000:80 -d frontend

Method 3

  • Install node, yarn and mongodb
  • Start mongodb
  • Go to backend folder, run npm install and npm run demo
  • Go to frontend folder, run yarn install and npm start

TODO

  • Backend
  • Frontend
  • Mobile App