Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kulakowka/bugurt
Express.js reddit/HN clone
https://github.com/kulakowka/bugurt
Last synced: 2 days ago
JSON representation
Express.js reddit/HN clone
- Host: GitHub
- URL: https://github.com/kulakowka/bugurt
- Owner: kulakowka
- Created: 2016-01-20T09:22:59.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-29T15:43:53.000Z (almost 9 years ago)
- Last Synced: 2024-10-17T07:37:14.855Z (27 days ago)
- Language: JavaScript
- Homepage: https://selfeducation.app
- Size: 262 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The project is in development :octocat:
#### Install:
You must have installed and running [MongoDB](https://www.mongodb.org/) database before you run the application.
```
git clone [email protected]:kulakowka/bugurt.git
cd bugurt
npm install
```## Seed data:
#### Attention! :point_up::guardsman:
> The script will drop database before you start :bomb::bomb::bomb:
Seed script help:
```
node seed -h
```#### Seed data with default settings:
In order to fill your project with fake data, run this command in console.
```
node seed
```
Or with npm:
```
npm run seed
```#### Seed data with custom settings:
```
node seed -U 5 -S 10 -H 10 -C 100 -A 30
```
Or full arguments names:
```
node seed --users 5 --subscriptions 10 --hubs 10 --comments 100 --articles 30
```#### Admin user
The generator will give you a user with administrative privileges.
Username: **admin**
Password: **pass**
## Run application:
#### Development
In order to start application in `development` mode, run this command in console.
```
npm start
```Now, open in your browser [http://localhost:3000](http://localhost:3000)
#### Production:
In order to start application in `production` mode, run this command in console.
```
PORT=3000 NODE_ENV=production node ./bin/www --harmony
```Or start with pm2:
```
$ pm2 start ecosystem.json --env production
```More info about pm2:
- [Pm2 docs](http://pm2.keymetrics.io/docs/usage/application-declaration/)
- [pm2 quick start](http://pm2.keymetrics.io/docs/usage/quick-start/)#### Tools for comfortable development
- [Robomongo](robomongo.org) - Shell-centric cross-platform MongoDB management tool