WebSite kajlund.com
Personal website built using Node.js, Express and Mongoose.
Running
npm install
npm start
The server by default runs on port 3000. It expects some environment variables that can be provided by adding them to a file called .env
in the root directory. The following variables are expected:
NODE_ENV= # development|production
PORT= # 3000
SECRET= # Long random string for seeding session cookie
MONGO_URI= # URI to your mongodb database
Development
-
This project uses EditorConfig to standardize text editor configuration. Visit https://editorconfig.org for details.
-
This project uses ESLint for code linting and formatting. Read more about how to configure ESLint here.
-
The server was implemented using the Express framework
-
Database support and ODM provided by Mongoose
-
Traditional server-side rendering was implemented using Nunjucks templating language.
-
The app uses Sendgrid and nodemailer for sending emails.
-
UI implemented using Bootstrap 5 and Bootstrap Icons
-
For serv er-side validation I usewd Validator
-
Academind - NodeJS The complete guide among other courses inspired to build this site.
Testing
The project uses Jest for testing. Check it out at jestjs.io.
To execute the tests run npm t
or npx jest
.