eDemy – Flutter App Documentation

Admin/Web Install Preparation

Admin/Web Install Preparation

Video Tutorial

NodeJS works as a node package manager behind the scene. It is recommended to download and install the latest version of Node.js.

PostgreSQL, also known as Postgres, is a free and open-source relational database management system emphasizing extensibility and SQL compliance. It was originally named POSTGRES, referring to its origins as a successor to the Ingres database developed at the University of California, Berkeley.

  • Create Cloudinary Account And Follow the below screenshots

From the Above second image copy that API URL and paste it to any safe place and update it like below and it will be two

Now open the next.config.js from the root project of the downloaded bundle of ThemeForest.

  • Now chose the project folder like chose the edemy-web & follow the below.

And Update the below environment variables values

CLOUDINARY_URL: "https://api.cloudinary.com......",
CLOUDINARY_VIDEO_URL: "https://api.cloudinary.com......",
STRIPE_SECRET_KEY: "sk_test_3D..........",
STRIPE_PUBLISHABLE_KEY: "pk_test_Zy........"
  • Now update the upload_preset & cloud_name into the /pages/teacher/course/create.js file also for video upload /pages/teacher/course/upload-course-video.js file.
  • And lastly, update the /project/config/config.json file with the necessary info
{
  "development": {
    "username": "user",
    "password": 'password || null",
    "database": "edemy_database_development",
    "host": "127.0.0.1",
    "dialect": "postgres"
  },
  "test": {
    "username": "user",
    "password": "password",
    "database": "edemy_database_test",
    "host": "127.0.0.1",
    "dialect": "postgres"
  },
  "production": {
    "username": "user",
    "password": "password",
    "database": "edemy_database_production",
    "host": "127.0.0.1",
    "dialect": "postgres"
  }
}

Setup Finish & Run

Open a terminal into this updated project which you have added several keys pieces of stuff and follow these steps

  • npm install --legacy-peer-deps
  • npx sequelize-cli db:create
  • npx sequelize-cli db:migrate
  • npm run dev
  • Go To localhost:3000
  • Done 🙂

How to create Admin

  • Just normally Signup via registration form http://localhost:3000/authentication
  • And go to Users table into the database and find the role column update the value with admin
  • Now you are an Admin user