Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/smoke221/cointab-assignment
https://github.com/smoke221/cointab-assignment
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/smoke221/cointab-assignment
- Owner: Smoke221
- Created: 2024-02-23T14:26:39.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-02-25T12:08:56.000Z (10 months ago)
- Last Synced: 2024-03-21T14:44:12.984Z (10 months ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cointab Assignment
A web app that allows admins/moderators to fetch all the users from the API and perform actions. The assignment is provided by [Cointab](https://www.cointab.net/), a service provider that empowers people and businesses with technology, for the Software Engineer position.
#### The project is deployed [here](https://cointab-assignemnt.netlify.app/).
## Features
- Fetching all the users from the API.
- Ability to add details to the database.
- If the details already exist in the database, you can click on OPEN and perform further actions.
- You can add posts of the user into the database.
- Easily navigate back to the homepage with just a button click.
- Ability to download user's post details in Excel.## API
- `http://localhost:8000/users`
- **GET**
- To fetch all the users.
- `http://localhost:8000/:userId`
- **GET**
- To fetch details of the user through userID and find if the user exists in the database or not.
- `http://localhost:8000/addUser`
- **POST**
- **Body**
- User details.
- Add user details to the database.
- `http://localhost:8000/posts/:userId`
- **GET**
- To fetch posts of a user by userID.
- `http://localhost:8000/posts/addBulk/:userId`
- **POST**
- Posts details.
- To add all the posts details to the database.
- `http://localhost:8000/posts/download-in-excel/:userId`
- **GET**
- To download the details in Excel.## Tech Stack
- HTML, CSS, and JS for the frontend.
- Node.js for the backend.
- Mongo Atlas for the Database.## Snapshot
### Home page
![Screenshot (227)](https://github.com/Smoke221/Cointab-Assignment/assets/114225283/4e628624-506a-4866-a535-81b3648876b4)### Posts page
![Screenshot (228)](https://github.com/Smoke221/Cointab-Assignment/assets/114225283/6f5a45ee-37d9-40c4-a777-be7f50035644)