This Project mainly utilize Node.js, Express and EJS and various Node Package Module libraries.
Render doesn't provide me a disk or file system so Image that were uploaded to it are not saved
- Make sure you're using the Node.js version at least 20.18.0 --> https://nodejs.org/en
- Make sure you also have Terminal environment such as Git Bash. --> https://git-scm.com/downloads
- Ensure you have Google Authentification Client ID setup in Google Cloud Project --> https://developers.google.com/identity/sign-in/web/sign-in
- This step is to install the Node.js 3rd party libraries.
- For this Project, I used the following libraries:
- bcrypt
- body-parser
- dotenv
- ejs
- express
- express-session
- multer
- nodemon (Optional)
- passport
- passport-google-oauth2
- passport-local
- pg (PostgreSQL Database)
npm install
# If the package didn't install the libraries
npm i bcrypt body-paser dotenv ejs express express-session multer passport passport-google-oauth2 passport-local pg
npm i nodemon # Optional
- It'll automatically install all the libraries according to the JSON.
- Ensure you have PostgreSQL PG-ADMIN 4 opened in your local environment
- And you can set up GOOGLE SECURITY in Google Cloud by starting a new project
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
SESSION_SECRET=your-session-secret
PG_USER=your-postgres-username
PG_HOST=localhost
PG_DATABASE=mydatabase
PG_PASSWORD=your-postgres-password
PG_PORT=5432
nodemon index.js
(If 'nodemon index.js doesn't work, use the following)
npx nodemon index.js