- Node.js (v20.10.0 or later)
- MongoDB account and database
- NPM or Yarn installed
[✔] 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
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 usenode .
,node app.js
. - Use
npm run devcss
if you going to edit tailwind styles.
- Project uses unsplash(MIT).