Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martinbinard/twitter
A social nodejs app
https://github.com/martinbinard/twitter
express morgan nodejs pug
Last synced: about 2 months ago
JSON representation
A social nodejs app
- Host: GitHub
- URL: https://github.com/martinbinard/twitter
- Owner: MartinBINARD
- Created: 2023-10-26T18:14:40.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-11-02T20:02:39.000Z (about 1 year ago)
- Last Synced: 2024-04-24T09:29:30.624Z (8 months ago)
- Topics: express, morgan, nodejs, pug
- Language: JavaScript
- Homepage:
- Size: 132 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Twitter :bird:
## :dart: Goal
- Create a fork of twitter with generated views from back-end.
## :clipboard: Description
- This application is similar to twitter. It generates views with pug.
## :wrench: TOOLS
- node
- express
- express-session
- morgan
- pug
- bootstrap
- mongoose
- connect-mongo
- brcypt
- passeport
- passeport-local
- multer
- errorhandler
- dotenv## :computer: Use
- Rename .env.example file in .env
- Replace `DB` variable with mongoDB database link and replace user database name and password
- Then specify port with `PORT` varaible in .env.example then rename it in .env or leave the port 3000 by default
- Add your own `SESSION_SECRET` and specify `AUTH_AGE` in milliseconds.
- Write number of round to for password hash with brcypt in `BCRYPT_ROUND`- Install packages
```
npm i
```- Run app in development :construction:
```
npm start
```- Run app in production :rocket:
```
npm run start:prod
```