Skip to content

Javascriptnotes 2022 #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
3 changes: 2 additions & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
JWT_TOKEN=7whd7w8dqw6dqwdgDasdasddasd78d
JWT_TOKEN=7whd7w8dqw6dqwdgDasdasddasd78d
MONGO_URL=mongodb://127.0.0.1/javascriptNote
23 changes: 23 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# production
/build

# misc
.DS_Store
.env.local
.env.development.local
.env.test.local
.env.production.local

npm-debug.log*
yarn-debug.log*
yarn-error.log*
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Setup

```bash
systemctl start mongodb.service
yarn install
PORT=3001 yarn run start
```
9 changes: 5 additions & 4 deletions config/database.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
const mongoose = require('mongoose');
mongoose.Promise = global.Promise;

mongoose.connect('mongodb://localhost/javascriptNote', {
require('dotenv').config();
const MONGO_URL = process.env.MONGO_URL;
mongoose.connect('mongodb://127.0.0.1/javascriptNote', {
useNewUrlParser: true,
useUnifiedTopology: true,
useCreateIndex: true
useUnifiedTopology: true
}).then(() => console.log('Connection succesful'))
.catch((err) => console.log(err));
.catch((err) => console.log(err));
1 change: 0 additions & 1 deletion node_modules/.bin/atob

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/detect-libc

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/is-ci

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/mime

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/mkdirp

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/needle

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/node-pre-gyp

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/nodemon

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/nodetouch

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/nopt

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/rc

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/rimraf

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/semver

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/which

This file was deleted.

46 changes: 0 additions & 46 deletions node_modules/abbrev/LICENSE

This file was deleted.

23 changes: 0 additions & 23 deletions node_modules/abbrev/README.md

This file was deleted.

61 changes: 0 additions & 61 deletions node_modules/abbrev/abbrev.js

This file was deleted.

56 changes: 0 additions & 56 deletions node_modules/abbrev/package.json

This file was deleted.

Loading