Skip to content

๐Ÿ“ App for adding notes from logged-in users

License

Notifications You must be signed in to change notification settings

edicsonabel/notes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

16 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Notes

version issues forks stars license

Notes App

This application allows you to access a personal account and make reminder notes of your tasks. Having a space in this world called internet that allows you to remember what you have to do.

  • create/read/update/delete Notes (CRUD).
  • Allows a user to do log in and save his personal notes.

๐Ÿ’ช Getting Started

To install this application, you must first create the necessary environment variables for its use. We can do this by creating an .env file at the root of the project and declaring the variables there.

Environment Variables

In the .env file we must declare the following variables.

  • MONGODB_HOST this is the Mongodb URI string
  • MONGODB_DB Mongodb database name
MONGODB_HOST='localhost'
MONGODB_DB='notes'

These variables will be used to set the address of MongoDB to connect to the database.

/*  FILE src/database.js  */
const MONGODB_URI = `mongodb://${MONGODB_HOST}/${MONGODB_DB}`

Installation

After having declared the environment variables, we can perform the installation of the necessary modules for the project with the command:

npm install

When resetting the modules, we have to have started the MongoDB service or start it with the command:

mongod

Then start our project with the command:

npm start