Skip to content

joetta25/BlackRock

Repository files navigation

Project Title

BlackRock Task project.

Getting Started - Initial Set up

These instructions will get you a copy of the project up and running on your local machine.

Prerequisites

See project notes and requirements in Google Doc.

Installing

  1. Clone repository
  2. To run backend server from project root run
npm install
npm run dev
  1. Project will now be running on localhost on specified port. likely http://localhost:1234
  2. To run front end (create react app) navigate to blackrock directory (we are no longer using src directory), install dependencies, and start project.
cd blackrock
npm install
npm start
  1. Front end app will be running on port 3000. http://localhost:3000/
  2. Ideally both front and backend should be able to run at the same time for local development purposes.

Deployment

  1. Ensure Docker is installed and Running
  2. Create a Docker image with an identifiable tag/title
docker build -t BlackRock:v1 .

# or

docker build -t [yourusername]/blackrock .

#blackrock is lowercase because Docker will yell at you if it isn't

This tag value should be incremented to depict distict versions of the application

  1. Check the list of images
docker images
  1. Run Docker Container
docker run -p 80:3000 <IMAGE_ID_FROM#3>

Docker will run with port 3000 exposed on the container and mapping to port 80 locally

  1. The application will be avaiable via the browser at http://localhost.

  2. Open another terminal window and run the following commands

# in order to list all running containers
docker ps

# stop docker
docker stop

Built With

(dependencies worth noting)

  • ParcelJS - a web application bundler
  • CreateReactApp - for creating single-page React Applications
  • Redux - state container for JavaScript Apps
  • ExpressJS - minimalist web framework for NodeJS
  • Docker - securely build, share, and run modern applications anywhere

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published