Skip to content

Commit

Permalink
remove gitignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
fichimura committed Mar 27, 2024
1 parent 903fbed commit ff88269
Show file tree
Hide file tree
Showing 9,522 changed files with 175 additions and 655,830 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
64 changes: 32 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
<h1>Meerkat app</h1>

<h2>Description</h2>
<p>Meerkat is an app to test node, mongodb(Mongoose), express, ejs, and other aspects of development. In this scenario, this application is developed to enable the user to save its favorite Audiovisuals. This category gathers movies, series, documentaries and others type of productions similar to these ones.Also the user can make reviews about these audiovisuals in the application.
The app is the result of a course in Udemy, which is taught by Colt Steele. The name of the course is <strong>The Web Developer Bootcamp 2024.</strong></p>

<h2>Installation</h2>
<h3>Main install</h3>
Be sure to have NodeJS installed in your system, then:
<ul>
<li>
git clone this repository
</li>
<li>
npm i
</li>
<li>
npm start
</li>
</ul>

<h3>Docker option</h3>
Also if you prefer you can use the docker:
First git clone this repository, then go to the directory of the application and:

``` docker build -t meerkat . ```

```docker run -p 3000:3000 meerkat```


Finally the port is set to 3000, so go to some browser and put ```localhost:3000```

<h1>Meerkat app</h1>

<h2>Description</h2>
<p>Meerkat is an app to test node, mongodb(Mongoose), express, ejs, and other aspects of development. In this scenario, this application is developed to enable the user to save its favorite Audiovisuals. This category gathers movies, series, documentaries and others type of productions similar to these ones.Also the user can make reviews about these audiovisuals in the application.
The app is the result of a course in Udemy, which is taught by Colt Steele. The name of the course is <strong>The Web Developer Bootcamp 2024.</strong></p>

<h2>Installation</h2>
<h3>Main install</h3>
Be sure to have NodeJS installed in your system, then:
<ul>
<li>
git clone this repository
</li>
<li>
npm i
</li>
<li>
npm start
</li>
</ul>

<h3>Docker option</h3>
Also if you prefer you can use the docker:
First git clone this repository, then go to the directory of the application and:

``` docker build -t meerkat . ```

```docker run -p 3000:3000 meerkat```


Finally the port is set to 3000, so go to some browser and put ```localhost:3000```

21 changes: 19 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const mongoose = require('mongoose');
const ejsMate = require('ejs-mate');
const methodOverride = require('method-override');
const expressSession = require('express-session');
const MongoStore = require('connect-mongo');
const flash = require('connect-flash');
const passport = require('passport');
const User = require('./models/user');
Expand All @@ -19,8 +20,13 @@ const userRoutes = require('./routes/userRoutes');
const mongoSanitize = require('express-mongo-sanitize');
const helmet = require('helmet');

// 'mongodb://127.0.0.1:27017/meerkat-app'

mongoose.connect('mongodb://127.0.0.1:27017/meerkat-app');
// mongoose.connect(process.env.MONGO_ATLAS);

const mongoUrl = 'mongodb://127.0.0.1:27017/meerkat-app';

mongoose.connect(mongoUrl);

const db = mongoose.connection;
db.on("error", console.error.bind(console, "connection error: "));
Expand All @@ -38,9 +44,20 @@ app.use(express.urlencoded({ extended: true }));
app.use(methodOverride('_method'));
app.use(express.static(path.join(__dirname, 'public')));

const secret = process.env.SECRET || 'thisshouldbeabettersecret!';

const store = MongoStore.create({
mongoUrl: mongoUrl,
touchAfter: 24 * 60 * 60,
crypto: {
secret
}
});

const sessionSettings = {
store,
name: 'session',
secret: 'secretTest!',
secret,
resave: false,
saveUninitialized: true,
cookie: {
Expand Down
12 changes: 0 additions & 12 deletions node_modules/.bin/atob

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/atob.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/atob.ps1

This file was deleted.

12 changes: 0 additions & 12 deletions node_modules/.bin/color-support

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/color-support.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/color-support.ps1

This file was deleted.

12 changes: 0 additions & 12 deletions node_modules/.bin/csv-parser

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/csv-parser.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/csv-parser.ps1

This file was deleted.

12 changes: 0 additions & 12 deletions node_modules/.bin/ejs

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/ejs.cmd

This file was deleted.

28 changes: 0 additions & 28 deletions node_modules/.bin/ejs.ps1

This file was deleted.

12 changes: 0 additions & 12 deletions node_modules/.bin/gulp

This file was deleted.

17 changes: 0 additions & 17 deletions node_modules/.bin/gulp.cmd

This file was deleted.

Loading

0 comments on commit ff88269

Please sign in to comment.