Source code for the AdonisJS 5 from scracth course project.
Clone the project repository by running the command below:
# using SSH
git clone [email protected]:mezielabs/taskist.git
# using HTTPS
git clone https://github.com/mezielabs/taskist.gitAfter cloning, run:
npm installDuplicate .env.example:
cp .env.example .envGenerate APP_KEY:
node ace generate:keyThis will output a random string, which you will need to add inside
.env.
Update environment variables:
// .env
APP_KEY=YOUR_GENERATED_KEY_COPIED_FROM_ABOVE
DB_CONNECTION=mysql
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=YOUR_DATABASE_USERNAME
MYSQL_PASSWORD=YOUR_DATABASE_PASSWORD
MYSQL_DB_NAME=taskistRemember to update
YOUR_DATABASE_USERNAMEandYOUR_DATABASE_PASSWORDwith your database details.
Run the migrations:
node ace migration:runFinally, start the application:
node ace serveand visit http://0.0.0.0:3333 to see the application in action.
Want to learn how to build projects like this with AdonisJS? Check out Adonis Mastery, where you get to learn AdonisJS through practical screencasts.