Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/samya-s/inotebook

iNotebook - Your notes secured in the cloud. Made with React.js, Express.js and MongoDB
https://github.com/samya-s/inotebook

full-stack inotebook mern notebook notes notes-app

Last synced: 15 days ago
JSON representation

iNotebook - Your notes secured in the cloud. Made with React.js, Express.js and MongoDB

Awesome Lists containing this project

README

        

# iNotebook

Your notes secured in the cloud. A full-stack web application built using MERN stack, specifically `React.js` as frontend and `Express.js` and `MongoDB` as backend.

## Table of Contents

- [Folder structure](#folder-structure)
- [Installation](#installation)
- [Defining environment variables](#defining-environment-variables)
- [Run the development environment](#run-the-development-environment)

## Folder structure
```bash
inotebook
├── backend
│ ├── ...
│ └── ...
├── public
│ └── ...
├── src
│ ├── ...
│ └── ...
├── .gitignore
├── package-lock.json
├── package.json
└── README.md
```

## Installation

1. Clone the repository:

```bash
git clone [email protected]:Samya-S/inotebook.git
```
`Make sure you have SSH keys setup in your machine`

2. Navigate to the project directory:

```bash
cd inotebook
```

3. Install dependencies:

In the parent directory
```bash
npm i
```

In the backend directory
```bash
cd backend
npm i
```
`Make sure to have nodejs and npm installed`

## Defining environment variables

1. In the parent directory:

```bash
REACT_APP_BACKEND_HOSTING_DOMAIN = ''
```
1. In the backend directory:

```bash
MONGO_URI = ''
```

## Run the development environment

### To run both together

1. Navigate to the parent directory

2. Use the following command to run:

```bash
npm run both
```

### To run the frontend separately:

1. Navigate to the parent directory

2. Use the following command to run:

```bash
npm start
```

### To run the backend separately:

1. Navigate to the backend directory:

```bash
cd backend
```

2. Use the following command to run:

```bash
nodemon index.js
```
or alternatively
```bash
npm start
```