1. Home
  2. Docs
  3. eDemy – Flutter App Documentation
  4. Setup & Enable Development Environment
  5. 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
This image has an empty alt attribute; its file name is Screenshot-2021-01-27-at-11.59.35-AM-1024x541.png
This image has an empty alt attribute; its file name is Screenshot-2021-01-27-at-12.08.02-PM-1024x252.png

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

This image has an empty alt attribute; its file name is Screenshot-2021-01-27-at-12.16.27-PM-1024x452.png

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": "",
    "dialect": "postgres"
  "test": {
    "username": "user",
    "password": "password",
    "database": "edemy_database_test",
    "host": "",
    "dialect": "postgres"
  "production": {
    "username": "user",
    "password": "password",
    "database": "edemy_database_production",
    "host": "",
    "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
Was this article helpful to you? Yes No 2

How can we help?