Full-Stack Developer -- Next Steps
Get and store ScheduleIt router
Getting and storing the router, for example in Express.js applications, happens in an App.js file. Or in the Express applications root for the backend of the application.
Get the ScheduleIt Route And Use It
In this picture below, the ScheduleIt route is not stored in a variable, but can be. In an Express application the following is the way to start using the route that we just got. However you would need to adapt it, you can, but this is the general gist of what to do.
Get connection string for the database.
Use connection string to connect to the database.
These steps might be different for other databases, but essentially, it is all about getting the data necessary to connect to the database.
Set Up Nodemailer Transport
Using the backend method below, named setupEmailTransport
, you will need to setup the transport for your email provider's options and authorizations. You can visit Nodemailer.com to read about it. You will go to sections about transports.
Require App If Necessary
If the server is in a different file then the app, you need to require the app before starting the server.
Start Server
Hopefully, if you are going through the setup of the backend, you will not need the server start method from the backend
required from ScheduleIt. That is reserved for those who do not know much about building their own backend. Otherwise, here is the way to get that done.