Giter Site home page Giter Site logo

devfly_itholic's Introduction

This is a Next.js project bootstrapped with create-next-app.

Getting Started

Run the development server:

npm install

npm run dev

nextjs-auth0 GitHub repo : https://github.com/auth0/nextjs-auth0

You can execute the following command to generate a suitable string for the AUTH0_SECRET value:

node -e "console.log(crypto.randomBytes(32).toString('hex'))"

If Prisma raises an error complaining about DATABASE_URL from DOTENV file, this workaround works fine :
```
```bash
npm install -g dotenv-cli

#to load .env vars then open prisma studio
dotenv -e .env.local -- npx prisma studio

#or load .env vars then migrate to create or update changes from models to tables (better)
dotenv -e .env.local -- npx prisma migrate dev

#or load .env vars migrate to create or update changes from models to tables then does not interact with or rely on migrations. The migrations table will not be updated, and no migration files will be generated.(avoid)
dotenv -e .env.local -- npx prisma db push

#or to truncate all tables
dotenv -e .env.local -- npx prisma migrate reset

#ngrok forwarding
npx ngrok http 3000 --authtoken "TOKEN"

#stripe login expires in 90 days
.\stripe login


#stripe forwarding
.\stripe listen --forward-to localhost:3000/api/stripe-hooks

#prisma seed
#addd to package.json
"prisma": {
  "seed": "node prisma/seed.js"
},
#Then run
npx prisma db seed

#hard pull and rewrite locally
git reset --hard origin/aimade

#hard push and delete previous commit(s) and push the current one.
git push origin <your_branch_name> --force

#view json forma in browser
{JSON.stringify(response)})

#Functionalities:

#1 : Home page------------------------------------------------------------------------------> Done
#2 : All courses page ---> #4 --------------------------------------------------------------> Done
#3 : Categories page(courses(component) + roadmap (component)) (page) ----> #4 -------------> Note yet
#4 : (Udemy example)Course details + competences + basic knowledge (page) ----> #6 ---------> Done
#5 : Login + sign up (pages) ---------------------------------------------------------------> Done
#6 : Course dashboard (page) ---------------------------------------------------------------> Note yet
#7 : Quiz page -----------------------------------------------------------------------------> Note yet
#8 : Certificate component (option)---------------------------------------------------------> Note yet
#9 : Profile page + enrolled in courses ----------------------------------------------------> Done 1/2

#1 : Home ---------------> Done
#2 : All courses --------> Done
#3 : Categories page-----> Note yet
#4 : Course details------> Done
#5 : Login + sign up ----> Done
#6 : Course dashboard----> Note yet
#7 : Quiz page ----------> Note yet
#8 : Certificate component --> Note yet
#9 : Profile page + enrolled in courses ---> Done 1/2

Open http://localhost:3000 with your browser to see the result.

devfly_itholic's People

Contributors

aimdexter avatar youssra-ghninou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.