Skip to content

Commit

Permalink
website is done
Browse files Browse the repository at this point in the history
  • Loading branch information
enkhbold470 committed Apr 17, 2024
1 parent 3c2d932 commit 876390e
Show file tree
Hide file tree
Showing 38 changed files with 12,893 additions and 3,466 deletions.
44 changes: 44 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
FROM node:18-alpine AS base

FROM base AS deps

RUN apk add --no-cache libc6-compat
WORKDIR /app

COPY package.json ./

RUN npm update && npm install

# If you want yarn update and install uncomment the bellow

# RUN yarn install && yarn upgrade

FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

RUN npm run build

FROM base AS runner
WORKDIR /app

ENV NODE_ENV production
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

COPY --from=builder /app/public ./public

RUN mkdir .next
RUN chown nextjs:nodejs .next

COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static

USER nextjs

EXPOSE 3000

ENV PORT 3000

CMD ["node", "server.js"]
157 changes: 157 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

120 changes: 108 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,76 @@
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).
This is my portfolio page README for my GitHub repository.

<p
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dct="http://purl.org/dc/terms/"
>
<a
property="dct:title"
rel="cc:attributionURL"
href="https://github.com/enkhbold470/my-next-portfolio"
>Portfolio Website</a
>
by <span property="cc:attributionName">Enkhbold Ganbold</span> is licensed
under
<a
href="http://creativecommons.org/licenses/by-nc-nd/4.0/?ref=chooser-v1"
target="_blank"
rel="license noopener noreferrer"
style="display: inline-block"
>Attribution-NonCommercial-NoDerivatives 4.0 International<img
style="
height: 22px !important;
margin-left: 3px;
vertical-align: text-bottom;
"
src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1" /><img
style="
height: 22px !important;
margin-left: 3px;
vertical-align: text-bottom;
"
src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1" /><img
style="
height: 22px !important;
margin-left: 3px;
vertical-align: text-bottom;
"
src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1" /><img
style="
height: 22px !important;
margin-left: 3px;
vertical-align: text-bottom;
"
src="https://mirrors.creativecommons.org/presskit/icons/nd.svg?ref=chooser-v1"
/></a>
</p>

## Getting Started

First, run the development server:
To run the portfolio locally, follow these steps:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```
1. Clone the repository.
2. Install the dependencies by running `npm install`.
3. Start the development server by running `npm run dev`.

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

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Docker Container

if you're running it on server, make sure containers run even though it is restarted, in order to do that, use this script:

`docker run -d -p 80:3000 --restart unless-stopped enkhbold470/enk.icu-arm`

### Make sure when server boot, triggers docker.service, script:

`sudo systemctl enable docker.service`

`sudo systemctl enable containerd.service`

## Learn More

To learn more about Next.js, take a look at the following resources:
Expand All @@ -34,3 +85,48 @@ You can check out [the Next.js GitHub repository](https://github.com/vercel/next
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

<p
xmlns:cc="http://creativecommons.org/ns#"
xmlns:dct="http://purl.org/dc/terms/"
>
<a
property="dct:title"
rel="cc:attributionURL"
href="https://github.com/enkhbold470/my-next-portfolio"
>Portfolio Website</a
>
by <span property="cc:attributionName">Enkhbold Ganbold</span> is licensed
under
<a
href="http://creativecommons.org/licenses/by-nc-nd/4.0/?ref=chooser-v1"
target="_blank"
rel="license noopener noreferrer"
style="display: inline-block"
>Attribution-NonCommercial-NoDerivatives 4.0 International<img
style="
height: 22px !important;
margin-left: 3px;
vertical-align: text-bottom;
"
src="https://mirrors.creativecommons.org/presskit/icons/cc.svg?ref=chooser-v1" /><img
style="
height: 22px !important;
margin-left: 3px;
vertical-align: text-bottom;
"
src="https://mirrors.creativecommons.org/presskit/icons/by.svg?ref=chooser-v1" /><img
style="
height: 22px !important;
margin-left: 3px;
vertical-align: text-bottom;
"
src="https://mirrors.creativecommons.org/presskit/icons/nc.svg?ref=chooser-v1" /><img
style="
height: 22px !important;
margin-left: 3px;
vertical-align: text-bottom;
"
src="https://mirrors.creativecommons.org/presskit/icons/nd.svg?ref=chooser-v1"
/></a>
</p>
27 changes: 27 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
eslint: {
ignoreDuringBuilds: true,
},
images: {
remotePatterns: [
{
protocol: "https",
hostname: "images.ctfassets.net",
pathname: "**",
},
],

unoptimized: true,
},
webpack: (config) => {
config.resolve.alias.canvas = false;

return config;
},
transpilePackages: ["react-daisyui"],
// output: "standalone",
output: "export",
};

module.exports = nextConfig;
4 changes: 0 additions & 4 deletions next.config.mjs

This file was deleted.

Loading

0 comments on commit 876390e

Please sign in to comment.