Skip to content

BIT course task about creating a forum with node ejs templating library.

License

Notifications You must be signed in to change notification settings

GymMed/BIT-EJS-Forum

Repository files navigation

Express Forum Template

Your EJS Template


Last update: April 17, 2024 Updated for Node 20.10.0
Forum page

Welcome!

Prerequisites

  • Node.js (v20.10.0 or later)
  • MongoDB account and database
  • NPM or Yarn installed

1. How to launch this project

[✔] 1.1 Create new /images folder in /public folder

[✔] 1.2 Add .env file

  • Create a new file named .env in the project root directory.

  • To do it propertly copy this code and paste it to your newly created .env file(provided .env example document).

  • Field SESSIONS_SECRET is meant for sessions security, just thnink of any password and put it there

.env

DB_USER=
DB_PASSWORD=
DB_HOST=
DB_NAME=
SESSIONS_SECRET=

MONGO_CONNECTION=mongodb+srv://__DB_USER:__DB_PASSWORD@__DB_HOST/__DB_NAME

[✔] 1.3 Install dependencies

  • Run npm install in the root directory to install the required packages.

[✔] 1.4 Launch the project

  • Use npm run dev to start project (uses nodemon), if you don't have nodemon use node ., node app.js.
  • Use npm run devcss if you going to edit tailwind styles.

Used assets

Unsplash authors

About

BIT course task about creating a forum with node ejs templating library.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published