Skip to content

Commit

Permalink
Modifies README
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomaskontolacr committed Sep 15, 2023
1 parent 0a8571d commit f191191
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 25 deletions.
6 changes: 6 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
MERCHANT_ID=375917
SECRET_KEY=SAIPPUAKAUPPIAS
STRAPI_TOKEN=get-from-strapi
REDIRECT_SUCCESS=http://127.0.0.1:3000/fi/callback
REDIRECT_CANCEL=http://127.0.0.1:3000/fi/callback
NEXT_PUBLIC_STRAPI_API_URL=http://localhost:1337
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ yarn-error.log*

# local env files
.env*.local
.env

.swc

Expand Down
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,21 @@ FROM node:16 as builder
WORKDIR /app

COPY ./package.json .
COPY ./yarn.lock .
COPY ./package-lock.json .

ENV PATH /app/node_modules/.bin:$PATH

RUN yarn config set network-timeout 600000 -g && yarn install
RUN npm run build

COPY ./ .

EXPOSE 3000

ARG STRAPI_TOKEN
ARG NEXT_PUBLIC_STRAPI_API_URL
ENV STRAPI_TOKEN=${STRAPI_TOKEN}
ENV NEXT_PUBLIC_STRAPI_API_URL=${NEXT_PUBLIC_STRAPI_API_URL}

RUN yarn build
RUN npm run build


FROM node:16-alpine AS runner
Expand Down
21 changes: 8 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
# Ilmotunkki WEB
## Development

## Getting Started
Install dependencies

First, run the development server:
`npm install`

```bash
npm run dev
# or
yarn dev
```
Copy `.env` to `.env.local` and set the strapi API-token from `ìlmotunkki-cms`

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
Run the development server

You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
`npm run develop`

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.ts`.

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
Open `http://localhost:3000`
6 changes: 0 additions & 6 deletions default.env

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"develop": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
Expand Down

0 comments on commit f191191

Please sign in to comment.