CDLUC3 / dmsp_frontend_prototype

Repo to test out new NextJS framework
MIT License
0 stars 0 forks source link

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Installation

Prerequisites

Development

  1. Clone the repository

    git clone git@github.com:CDLUC3/dmsp_frontend_prototype.git
    cd dmsp_frontend_prototype
  2. Build and run the development Docker container

    docker-compose build
    docker-compose up
  3. Run the following to check that your container is up

    docker container ls -a
  4. Access the site at http://localhost:3000 You can view the landing page by going directly to http://localhost:3000/dmps/10.48321/D1SP4H

Production

  1. Clone the repository (if not already done in the development steps)
    git clone git@github.com:CDLUC3/dmsp_frontend_prototype.git
    cd dmsp_frontend_prototype
  2. Build and run the production Docker container
    
    docker build -f Dockerfile.prod -t dmsp_frontend_prototype:dmsp_frontend_prod .

docker run -p 3000:3000 dmsp_frontend_prototype:dmsp_frontend_prod


3. Access the Next.js app at http://localhost:3000