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!
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.
- 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
- Clone the repository
git clone https://github.com/adocasts/cms.git- Install NPM packages
npm i- Duplicate
.env.exampleand rename.env - Fill out the
.envvariables
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.
- Migrate your database
node ace migration:run- (Optional) If you'd like to start fresh (without faker data), open our
StarterSeedatdatabase/seeders/StarterSeed.tsand comment out theseedUsersAndContent()call within the run method.
publicasyncrun(){consttrx=awaitdb.transaction()try{awaitthis.seedRoles(trx)if(!app.inTest){// await this.seedUsersAndContent(trx)}awaittrx.commit()}catch(error){awaittrx.rollback()console.log({ error })}}- Seed our faker data
node ace db:seed