Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

nourimeals/website

Repository files navigation

Nourimeals.com / Nourimeals.org

This repo holds the project for our website.

Table of Contents

Technologoes

  • JavaScript
  • React

Quick Start

  1. Clone the repository
git clone https://github.com/nourimeals/website.git
  1. CD into the repository
cd website
  1. Install libraries
npm install
  1. Run the project
npm run hot

This should open up the website in your browser in http://localhost:8080

The hot script will hot reload whenever you make changes in your files so that you can see your changes right away.

Running with Docker

Running with Docker is an alternative process to run the application.

If you're interested in some of it's advantages and disadvantages, Philipp Hauer's blog has an understandable overview here https://phauer.com/2015/discussing-docker-pros-and-cons/

  1. Install Docker
  1. Create the docker image and container
docker-compose -f docker-compose.yml up -d --build

Command Highlights:

  • -f: points to file
  • up: Create and start containers
  • d: Runs container in background and leaves it running
  • --build: Creates the Docker image before starting the container
  1. Open http://localhost:8080
  2. Occassionally, you should clean up any stopped containers, dangling images, and unused networks
docker system prune

How to work with this repository