This is a Next.js project bootstrapped with create-next-app
.
- Node JS 12.8.3
- Docker (for deployment)
First, install dependencies:
npm install
Create an .env.local
file with the API URL. Example:
NEXT_PUBLIC_API=http://localhost:8080
Then, run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.
Just run:
npm run test
Build the image:
npm run docker-build
The image walmart-challenge-app
would be ready to be deployed. You can also run the container locally by entering:
(Remember to have your .env.local file put in place)
npm run docker-start