Company
Date Published
Author
Fikayo Adepoju
Word count
2548
Language
English
Hacker News points
None

Summary

Adonis.js, a popular Node.js web framework, is known for its developer-friendly API, scalability, and performance. This tutorial guides users through building a simple API with Adonis.js 5, deploying it to Heroku, and automating the process using CircleCI for continuous deployment. It begins with setting up a local Adonis.js project, configuring a SQLite database for development, and creating a User API with models and controllers. The tutorial then transitions to deploying the API on Heroku using a MySQL database, facilitated by the jawsDB add-on, and configuring it for production environments. Automation is achieved by creating a Heroku Procfile and a CircleCI configuration file, enabling seamless deployment whenever code changes are pushed to GitHub. The detailed guide emphasizes the use of environment variables to manage different configurations for development and production, providing a comprehensive walkthrough for setting up a robust automated deployment pipeline.