Testing endpoints from an express server
The Purpose of this server app is to expore the setup enviornment for making api calls from a node/express server
This is an ongoing experimental repository. Explanatory material is subject to change depending on the knowledge of the writer.
- When initalizing the package.json, set
type
tomodule
. Unless the module does not support ES6 modules, usemodule.exports
- Remember to change all traditional
module.exports
into ES6 import syntax.
import
import 'dotenv/config';
import express from 'express'
- Use Enviornment variable to protect api keys
- Expect to read the docs a lot.