Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrating to Next.JS #184

Draft
wants to merge 13 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .circleci/config.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .dockerignore

This file was deleted.

3 changes: 3 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": ["next", "next/core-web-vitals"]
}
1 change: 0 additions & 1 deletion .github/CODEOWNERS

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/anchore-analysis.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/ossar-analysis.yml

This file was deleted.

68 changes: 0 additions & 68 deletions .github/workflows/production.yml

This file was deleted.

22 changes: 15 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,28 @@

# testing
/coverage
.idea

# next.js
/.next/
/out/

# production
/build
/dist

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env.local
.env.development.local
.env.test.local
.env.production.local
.env

npm-debug.log*
yarn-debug.log*
yarn-error.log*
yarn.lock
# vercel
.vercel
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

4 changes: 0 additions & 4 deletions .husky/pre-commit

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

1 change: 0 additions & 1 deletion .prettierrc.json

This file was deleted.

1 change: 0 additions & 1 deletion .tool-versions

This file was deleted.

4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true
}
14 changes: 0 additions & 14 deletions Dockerfile

This file was deleted.

21 changes: 0 additions & 21 deletions LICENSE

This file was deleted.

37 changes: 25 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,34 @@
# CoronaSafe Dashboard
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).

[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/images/0)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/links/0)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/images/1)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/links/1)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/images/2)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/links/2)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/images/3)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/links/3)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/images/4)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/links/4)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/images/5)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/links/5)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/images/6)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/links/6)[![](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/images/7)](https://sourcerer.io/fame/tomahawk-pilot/coronasafe/dashboard/links/7)
## Getting Started

![CoronaSafe+War+Room+Home+Page+1](https://user-images.githubusercontent.com/14979190/118388552-e4f09180-b642-11eb-8a17-034e4e98c0c6.jpg)
First, run the development server:

### Objective
```bash
npm run dev
# or
yarn dev
```

The dashboard presents actionable intel using data tracked by [coronasafe/care](https://github.com/coronasafe/care) to administrators in order to take decisions based on ground conditions
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

# Project Setup
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.

In the project directory, you can run:
[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.tsx`.

Run `'npm install'` to install the dependencies.
Run `'npm start'` to start running the project on a development server.
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.

Run `'npm build'` to create an optimized production build.
## Learn More

Note: If you make changes to the codebase, try to make sure that it allows a more generic use case so that it can be merged into the Core Codebase and updates can be received to your Fork.
Once you have the pre
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.
13 changes: 0 additions & 13 deletions netlify.toml

This file was deleted.

3 changes: 3 additions & 0 deletions next-env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />
Loading