Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/guzzdev/nodegallery
Small SSR project to learn node. Free to use/edit/publish.
https://github.com/guzzdev/nodegallery
ejs-express express-js mongoose multer nodejs
Last synced: 7 days ago
JSON representation
Small SSR project to learn node. Free to use/edit/publish.
- Host: GitHub
- URL: https://github.com/guzzdev/nodegallery
- Owner: guzzdev
- License: mit
- Created: 2020-12-23T23:42:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-04-25T11:52:36.000Z (7 months ago)
- Last Synced: 2024-04-25T21:27:48.015Z (7 months ago)
- Topics: ejs-express, express-js, mongoose, multer, nodejs
- Language: JavaScript
- Homepage: https://nodegallery.onrender.com
- Size: 188 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NodeGallery
A small app that helps gathering family photos on my server.
| Techs used | What for |
| ------------------- | ----------------- |
| Mongoose | MongoDB |
| EJS | Template language |
| express-ejs-layouts | EJS Layouts |
| Express | Node Server |
| Multer | File uploading |## How to :
---
- Install package with yarn or npm
- `npm install`
- Create .env file; required :
- **PORT** => The port the app uses
- **MONGO_URI** => The MongoDB uri
- **SESSION_SECRET** => Session secret string
- `npm run prod`
## Example:---
.env
```
PORT=3000
MONGO_URI=mongodb://localhost:27017/imagesDB
SESSION_SECRET=arandomkey
```
#