/lms

Primary LanguageVue

Task

  • ENV : API

  • Git : Push /strapi-lms to github

  • User enrolled

    • fetch user
    • loop through user enrolled
    • fetch each courrse and insert into global variable
    • thehn render that variable in web
  • UI : Centre

    • Hero Page
DATABASE_URL=mongodb+srv://username:password@cluster0.abcd.mongodb.net/DBNAME
# NUXT_API_SECRET=api_secret_token
# microsoft@gmail.com / piyush@gmail.com > Piyush9898
NUXT_PUBLIC_API_BASE=http://127.0.0.1:1337/api
STRAPI_URL=http://127.0.0.1:1337

UI


SETUP

  • LMS : node version 16
  • strapi : node verion : 14

  • Auth : Regsiter & Login

RESOURCE

Dashboard : https://www.tailwind-kit.com/components/data

UI

Tailwind

Icons

Sitemap

  • Web(website)
    • home
    • blog
    • team
    • about
  • Admin(strapi cms)
    • profile
    • courses
    • enrolled
    • shop
  • Profile(login)
    • Courses
    • User

Module

Web

  • Dashb

Admin

  • CMS Setup & Model
  • database
  • git

Blog

  • Render md
  • Fetch() : /blogs , /blogs/:id , /blogs/?category=...

API

Auth

echo '{"username":"piyush","email":"piyush@gmail.com","password":"piyush"}' | http http://localhost:1337/api/auth/local/register

echo '{"identifier":"piyush@gmail.com","password":"piyush"}' | http POST ':1337/api/auth/local'
# {
#     "jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjc5MjQ4NTQwLCJleHAiOjE2ODE4NDA1NDB9.OpskD6Xy6hwS58aJpAVZAldovmZRc8usIBXUnx0w1NY",
#     "user": {
#         "email": "piyush@gmail.com",
#         "id": 1,
#         "provider": "local",
#         "username": "piyush"
#     }
# }
http -A bearer -a 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MSwiaWF0IjoxNjc5MjQ4NTQwLCJleHAiOjE2ODE4NDA1NDB9.OpskD6Xy6hwS58aJpAVZAldovmZRc8usIBXUnx0w1NY'  :1337/api/courses
# data ...

HELP


Pages

  • structure /
    • component : nav , hero , footer