Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8f3743c8bd | ||
|
|
adcb16fcfd | ||
|
|
9e66c069a6 | ||
|
|
a25bded298 | ||
|
|
2cd6f1707d | ||
|
|
629faae8ab | ||
|
|
dca4777b4c | ||
|
|
edc5bdbe7c | ||
|
|
6ee5901089 | ||
|
|
167dbaefc1 | ||
|
|
de86f086eb | ||
|
|
2d53141f42 | ||
|
|
bfa91eb346 | ||
|
|
53ee49c722 | ||
|
|
57402cd040 |
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"extends": "next/core-web-vitals"
|
||||||
|
}
|
||||||
@@ -1,50 +1,38 @@
|
|||||||
# These are some examples of commonly ignored file patterns.
|
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
|
||||||
# You should customize this list as applicable to your project.
|
|
||||||
# Learn more about .gitignore:
|
|
||||||
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
|
|
||||||
|
|
||||||
# Node artifact files
|
# dependencies
|
||||||
node_modules/
|
/node_modules
|
||||||
dist/
|
/.pnp
|
||||||
|
.pnp.js
|
||||||
|
|
||||||
# Compiled Java class files
|
# testing
|
||||||
*.class
|
/coverage
|
||||||
|
|
||||||
# Compiled Python bytecode
|
# next.js
|
||||||
*.py[cod]
|
/.next/
|
||||||
|
/out/
|
||||||
|
|
||||||
# Log files
|
# production
|
||||||
*.log
|
/build
|
||||||
|
|
||||||
# Package files
|
# misc
|
||||||
*.jar
|
|
||||||
|
|
||||||
# Maven
|
|
||||||
target/
|
|
||||||
dist/
|
|
||||||
|
|
||||||
# JetBrains IDE
|
|
||||||
.idea/
|
|
||||||
|
|
||||||
# Unit test reports
|
|
||||||
TEST*.xml
|
|
||||||
|
|
||||||
# Generated by MacOS
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
*.pem
|
||||||
|
|
||||||
# Generated by Windows
|
# debug
|
||||||
Thumbs.db
|
npm-debug.log*
|
||||||
|
yarn-debug.log*
|
||||||
|
yarn-error.log*
|
||||||
|
|
||||||
# Applications
|
# local env files
|
||||||
*.app
|
.env.local
|
||||||
*.exe
|
.env.development.local
|
||||||
*.war
|
.env.test.local
|
||||||
|
.env.production.local
|
||||||
|
|
||||||
# Large media files
|
# vercel
|
||||||
*.mp4
|
.vercel
|
||||||
*.tiff
|
|
||||||
*.avi
|
|
||||||
*.flv
|
|
||||||
*.mov
|
|
||||||
*.wmv
|
|
||||||
|
|
||||||
|
#generated assets
|
||||||
|
/download_2
|
||||||
|
/download_3
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"atlascode.bitbucket.enabled": true
|
||||||
|
}
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
FROM node:14.18.2
|
||||||
|
|
||||||
|
#RUN adduser -D -u 1001 app
|
||||||
|
WORKDIR /usr/src/app
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
|
||||||
|
#RUN chown -R app /usr/src/app
|
||||||
|
#USER 1001
|
||||||
|
|
||||||
|
RUN npm install --quiet
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
|
EXPOSE 3000
|
||||||
|
CMD npm run dev
|
||||||
@@ -0,0 +1,49 @@
|
|||||||
|
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).
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
First, run the development server:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
npm run dev
|
||||||
|
# or
|
||||||
|
yarn dev
|
||||||
|
```
|
||||||
|
|
||||||
|
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||||
|
|
||||||
|
You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
|
||||||
|
|
||||||
|
[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.js`.
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
## Learn More
|
||||||
|
|
||||||
|
To learn more about Next.js, take a look at the following resources:
|
||||||
|
|
||||||
|
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
||||||
|
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
||||||
|
|
||||||
|
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
|
||||||
|
|
||||||
|
## Deploy on Vercel
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
|
||||||
|
## Create Randomised images
|
||||||
|
|
||||||
|
These images will output to downloads folder
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
curl http://localhost:3000/api/days/[1-365] -o /downloads/days/#1-days.png
|
||||||
|
|
||||||
|
curl http://localhost:3000/api/weeks/[1-365] -o /downloads/weeks/#1-weeks.png
|
||||||
|
|
||||||
|
curl http://localhost:3000/api/sleeps/[1-365] -o /downloads/sleeps/#1-sleeps.png
|
||||||
|
|
||||||
|
```
|
||||||
|
After Width: | Height: | Size: 904 KiB |
|
After Width: | Height: | Size: 936 KiB |
|
After Width: | Height: | Size: 982 KiB |
|
After Width: | Height: | Size: 618 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 683 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 628 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 878 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.5 MiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1001 KiB |
|
After Width: | Height: | Size: 875 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 621 KiB |
|
After Width: | Height: | Size: 990 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 941 KiB |
|
After Width: | Height: | Size: 972 KiB |
|
After Width: | Height: | Size: 909 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1017 KiB |
|
After Width: | Height: | Size: 939 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 905 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 942 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.6 MiB |
|
After Width: | Height: | Size: 827 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1005 KiB |
|
After Width: | Height: | Size: 899 KiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 795 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 789 KiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 965 KiB |
|
After Width: | Height: | Size: 704 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 974 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 819 KiB |
|
After Width: | Height: | Size: 578 KiB |
|
After Width: | Height: | Size: 881 KiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.0 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 806 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 864 KiB |
|
After Width: | Height: | Size: 1007 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 856 KiB |
|
After Width: | Height: | Size: 702 KiB |
|
After Width: | Height: | Size: 922 KiB |
|
After Width: | Height: | Size: 832 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 878 KiB |
|
After Width: | Height: | Size: 834 KiB |
|
After Width: | Height: | Size: 690 KiB |
|
After Width: | Height: | Size: 1.3 MiB |
|
After Width: | Height: | Size: 948 KiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.8 MiB |
|
After Width: | Height: | Size: 1012 KiB |
|
After Width: | Height: | Size: 1007 KiB |
|
After Width: | Height: | Size: 700 KiB |
|
After Width: | Height: | Size: 810 KiB |
|
After Width: | Height: | Size: 1.1 MiB |