Skip to content
Open
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
7 changes: 7 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"extends": "next",
"rules": {
"react/no-unescaped-entities": "off",
"@next/next/no-page-custom-font": "off"
}
}
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# 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
26 changes: 0 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +0,0 @@
## Migrate the course selling app to next.js

Until now we've built a basic course selling application
- It uses React for the frontend
- It uses MongoDB as the database
- It uses Node.js as the Backend server
- It is written in JS

Link to it - https://github.com/100xDevs-hkirat/week-10

The assignment of this week is to move the application over to NextJS

You can bootstrap a nextjs application by calling -
```
npx create-next-app@latest
```

If you have followed the video from Week 10.2, please select these configs to use the Page router (vs the new NextJS 13 app router)

![Image](https://github.com/100xDevs-hkirat/Week-10-Assignment/blob/master/photo.jpg?raw=true, "image")


The goal is to -
- Move the frontend over to NextJS
- Move the backend over to NextJS API
- Convert the complete project to Typescript (and not use JS)
10 changes: 10 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
env:{
SECRET: 'secret',
BASE_URL: "http://localhost:3000",
}
}

module.exports = nextConfig
Loading