Code Monkey home page Code Monkey logo

cointab's Introduction

Assignment

Description

This documentation outlines the implementation details for the Cointab SE-ASSIGNMENT, a simple 2-page website developed using Node.js, Express, and MongoDB. The website interacts with the 'https://jsonplaceholder.typicode.com/' API to display user information and posts. The user data is stored in a MongoDB database, and the application provides functionality to add users, view user details, fetch posts, bulk add posts, and download posts in Excel format.

System Architecture

The system follows a server-client architecture, where the Node.js server handles HTTP requests from the client, interacts with the MongoDB database for data storage, and communicates with the 'https://jsonplaceholder.typicode.com/' API to fetch external data.

Features

  • Add users, view user details, fetch posts, bulk add posts.
  • Download the Post data in Excel format.

Technologies Used

  • Node.js
  • Express.js
  • MongoDB
  • HTML
  • CSS
  • JavaScript

Installation

For Backend

  1. Clone the repository:
```bash
git clone https://github.com/your-username/cointab.git
cd backend
```
  1. Install dependencies:
```bash
npm install
```
  1. Set up your MongoDB connection by creating a .env file in the root directory with the following content:
```env
mongourl=your-mongodb-connection-string
port = your-port
```
  • Replace your-mongodb-connection-string with your MongoDB connection string.
  • Replace your-port with your port number.
  1. Run the application:

For Frontend

  1. Navigate to the frontend directory:
```bash
cd frontend
```

Routes

User Routes

Method Endpoint Description
GET /user/get Check the user present in database
POST /user/post Add the user in database
GET /user/:id Getting data of user by id

Post Routes

Method Endpoint Description
POST post//bulkadd Add the Post data
GET post/checkUserId/:userId Check the user post is available

cointab's People

Contributors

avinawkumar avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.