Skip to content

adocasts/cms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e682995 Β· Jan 11, 2025

History

54 Commits
Dec 22, 2024
Dec 22, 2024
Jan 5, 2025
Nov 18, 2024
Dec 22, 2024
Dec 28, 2024
Jan 11, 2025
Nov 18, 2024
Dec 23, 2024
Jan 4, 2025
Nov 18, 2024
Nov 18, 2024
Jan 4, 2025
Nov 29, 2024
Nov 18, 2024
Nov 18, 2024
Dec 21, 2024
Jan 4, 2025
Nov 18, 2024
Nov 18, 2024
Jan 4, 2025
Jan 4, 2025
Nov 30, 2024
Nov 18, 2024
Nov 18, 2024

Repository files navigation

Adocasts

Adocasts provides education lessons, screencasts, and livestreams on AdonisJS, NodeJS, JavaScript, and more. We have a vast library of free lessons and resources that expands weekly to help get you up and running with AdonisJS.

Get even more by joining Adocasts Plus

πŸ“š Ready to learn? Check out adocasts.com
πŸŽ‰ New lessons every week!


YouTube Badge Twitter Badge Twitch Badge


Before We Start

To simplify session management, email verification, and similar logic, the Adocasts CMS only offers limited authentication functionality. To register a new user, please clone down the Adocasts project which contains the full suite of authentication functionalities.

Prerequisites

  • PostgreSQL β€” We use PostgreSQL as our database driver so you'll either want it installed on your machine or a service that provides it.
  • SMTP Provider β€” Locally, we like to use MailTrap
  • Redis Server β€” We now require a Redis connection via Bentocache
  • Node v20.6+ β€” Recommended

Installation

  1. Clone the repository
git clone https://github.com/adocasts/cms.git
  1. Install NPM packages
npm i
  1. Duplicate .env.example and rename .env
  2. Fill out the .env variables

Data

We provide a StarterSeed that will populate your database with faker data to populate pages on the Adocasts site.

I haven't tested this yet since our migration from AdonisJS 5 to 6. If you run into any problems, feel free to open an issue.

  1. Migrate your database
node ace migration:run
  1. (Optional) If you'd like to start fresh (without faker data), open our StarterSeed at database/seeders/StarterSeed.ts and comment out the seedUsersAndContent() call within the run method.
public async run() {
  const trx = await db.transaction()
  
  try {
    await this.seedRoles(trx)

    if (!app.inTest) {
      // await this.seedUsersAndContent(trx)
    }

    await trx.commit()
  } catch (error) {
    await trx.rollback()
    console.log({ error })
  }
}
  1. Seed our faker data
node ace db:seed

Releases

No releases published

Packages

No packages published