-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial commit from create-refine-app
- Loading branch information
0 parents
commit 24de83b
Showing
29 changed files
with
11,275 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
.yarn/install-state.gz | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env*.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
# typescript | ||
*.tsbuildinfo | ||
next-env.d.ts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
legacy-peer-deps=true | ||
strict-peer-dependencies=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
FROM refinedev/node:18 AS base | ||
|
||
FROM base AS deps | ||
|
||
RUN apk add --no-cache libc6-compat | ||
|
||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./ | ||
|
||
RUN \ | ||
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \ | ||
elif [ -f package-lock.json ]; then npm ci; \ | ||
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \ | ||
else echo "Lockfile not found." && exit 1; \ | ||
fi | ||
|
||
FROM base AS builder | ||
|
||
COPY --from=deps /app/refine/node_modules ./node_modules | ||
|
||
COPY . . | ||
|
||
RUN npm run build | ||
|
||
FROM base AS runner | ||
|
||
ENV NODE_ENV production | ||
|
||
COPY --from=builder /app/refine/public ./public | ||
|
||
RUN mkdir .next | ||
RUN chown refine:nodejs .next | ||
|
||
COPY --from=builder --chown=refine:nodejs /app/refine/.next/standalone ./ | ||
COPY --from=builder --chown=refine:nodejs /app/refine/.next/static ./.next/static | ||
|
||
USER refine | ||
|
||
EXPOSE 3000 | ||
|
||
ENV PORT 3000 | ||
ENV HOSTNAME "0.0.0.0" | ||
|
||
CMD ["node", "server.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# starter-repo | ||
|
||
<div align="center" style="margin: 30px;"> | ||
<a href="https://refine.dev"> | ||
<img alt="refine logo" src="https://refine.ams3.cdn.digitaloceanspaces.com/readme/refine-readme-banner.png"> | ||
</a> | ||
</div> | ||
<br/> | ||
|
||
This [Refine](https://github.com/refinedev/refine) project was generated with [create refine-app](https://github.com/refinedev/refine/tree/master/packages/create-refine-app). | ||
|
||
## Getting Started | ||
|
||
A React Framework for building internal tools, admin panels, dashboards & B2B apps with unmatched flexibility ✨ | ||
|
||
Refine's hooks and components simplifies the development process and eliminates the repetitive tasks by providing industry-standard solutions for crucial aspects of a project, including authentication, access control, routing, networking, state management, and i18n. | ||
|
||
## Available Scripts | ||
|
||
### Running the development server. | ||
|
||
```bash | ||
npm run dev | ||
``` | ||
|
||
### Building for production. | ||
|
||
```bash | ||
npm run build | ||
``` | ||
|
||
### Running the production server. | ||
|
||
```bash | ||
npm run start | ||
``` | ||
|
||
## Learn More | ||
|
||
To learn more about **Refine**, please check out the [Documentation](https://refine.dev/docs) | ||
|
||
- **REST Data Provider** [Docs](https://refine.dev/docs/core/providers/data-provider/#overview) | ||
|
||
## License | ||
|
||
MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = {}; | ||
|
||
export default nextConfig; |
Oops, something went wrong.