Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yeabnoah/tikus-news-backend
Tikus News Backend: Node.js & Express.js server for the Tikus News app. Built with MongoDB, follows MVC architecture.
https://github.com/yeabnoah/tikus-news-backend
crud express mvc-architecture node-js rest-api
Last synced: 10 days ago
JSON representation
Tikus News Backend: Node.js & Express.js server for the Tikus News app. Built with MongoDB, follows MVC architecture.
- Host: GitHub
- URL: https://github.com/yeabnoah/tikus-news-backend
- Owner: yeabnoah
- Created: 2023-12-04T17:40:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-27T09:35:21.000Z (10 months ago)
- Last Synced: 2024-04-27T10:31:03.831Z (10 months ago)
- Topics: crud, express, mvc-architecture, node-js, rest-api
- Language: JavaScript
- Homepage:
- Size: 957 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tikus News Backend [ simple api ]
Tikus News Backend is the backend server for the Tikus News mobile app, built using JavaScript with Node.js and Express.js. It utilizes MongoDB as the database for storing news data. The backend follows the MVC architecture pattern, with separate folders for models, controllers, and routes to organize the codebase effectively.
## Technologies Used
- **Node.js**: Node.js is a JavaScript runtime that allows for building scalable and efficient server-side applications.
- **Express.js**: Express.js is a web application framework for Node.js, providing a robust set of features for building APIs and web applications.
- **MongoDB**: MongoDB is a NoSQL database used for storing and managing data in a flexible and scalable manner.
## Features
- **RESTful API**: The backend provides a RESTful API for managing news data, including endpoints for creating, reading, updating, and deleting news articles.
- **MVC Architecture**: The project follows the Model-View-Controller (MVC) architecture pattern, separating concerns into models, controllers, and routes for better organization and maintainability.
- **CRUD Operations**: Users can perform CRUD (Create, Read, Update, Delete) operations on news articles through the provided API endpoints.
## Folder Structure
The project follows a folder structure that separates concerns and promotes code organization:
- **models**: Contains the data models representing news articles and other entities in the database.
- **controllers**: Houses the controller functions responsible for handling business logic and interacting with the database.
- **routes**: Defines the API routes and maps them to the corresponding controller functions.## Getting Started
To get started with the backend project, follow these steps:
1. **Clone the Repository**: Clone this repository to your local machine using `git clone`.
2. **Install Dependencies**: Navigate to the project directory and install the dependencies using `npm install`.
3. **Set Up Environment Variables**: Create a `.env` file in the root directory and configure environment variables such as database connection URI and JWT secret.
4. **Start the Server**: Run the server using `npm start`. By default, the server will start on port 3000.
5. **Explore the API**: Use API testing tools like Postman or Insomnia to interact with the provided endpoints and manage news articles.