https://github.com/jefferson1104/pureapi-nodejs
A pure API without the use of framewokrs such as expressJS, nestJS and etc... just an api with nodeJS native functions.
https://github.com/jefferson1104/pureapi-nodejs
javascript node rest-api
Last synced: 3 months ago
JSON representation
A pure API without the use of framewokrs such as expressJS, nestJS and etc... just an api with nodeJS native functions.
- Host: GitHub
- URL: https://github.com/jefferson1104/pureapi-nodejs
- Owner: jefferson1104
- Created: 2020-11-23T18:48:19.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-27T16:08:59.000Z (over 3 years ago)
- Last Synced: 2025-01-11T14:47:52.622Z (5 months ago)
- Topics: javascript, node, rest-api
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Node.js API without frameworks
![]()
![]()
# About this project
This API was built with Node.js without the use of frameworks, an app with native javascript functionality.# Structure
- **database**: location where our files that will simulate a database are kept.
- **src**: location where all the application's source code is.
- **src/entities**: location where the application's entities will be kept, to validate data.
- **src/repostiries**: location where you access database data.
- **src/services**: place where all the logic and business rules of the application are located.
- **src/factories**: to generate instances with dependency injection pattern and so on.
- **testscript**: File to test the api routes.# How to run this project
```bash
# Clone this repository
$ git clone https://github.com/jefferson1104/pureAPI-nodejs.git# Access project directory
$ cd diretoriodoprojeto
$ code .# Install all dependencies
$ yarn# Run application
$ yarn start# Test the application, open a new terminal next to the project's root directory and run
$ sh script.sh
```
> #### CONTENT CREATION AND EXPLANATION GUIDE:
> https://www.youtube.com/watch?v=NxHY14rMPvc&ab_channel=ErickWendel