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

https://github.com/jonanata/node-demo

node example
https://github.com/jonanata/node-demo

express node-example nodejs reactjs

Last synced: 3 months ago
JSON representation

node example

Awesome Lists containing this project

README

          

# node-demo
node example

# Introduction

The application allows users to explore the characters of the Star Wars universe as well as the details related to each one of them such as movies where they appear, home world, race, etc. Users can search characters by name in the given search bar.

The backend act as middleware between the frontend and the data sources by consuming the SWAPI and local JSON file and providing its own API to the frontend.

For the search function, it will query the SWAPI data source first. If no result, for example “Grogu”, it will query the local JSON files. If it is still no result, the frontend will display “Result Not Found”. Otherwise, it will display the character details as a grid.

# Installation

The application requires node.js 18.12.0, which can be installed by:

apt install nodejs

apt install npm

nvm install 18.12.0


To install dependency, in your terminal, please go to the “test” folder:

nvm use 18.12.0;

npm install

cd client

npm install


The application includes frontend (/test/client/) and server (/test/server/). To start the application, in your terminal, please go to the “test” folder, and run the following commands:

//start server

cd server

nvm use 18.12.0; npm start

//start client

cd client

nvm use 18.12.0; npm start


Open browser and go to the homepage by following the link http://localhost:3000 :

If you are not using “localhost”, please update the “proxy” value in /test/client/package.json

For more information , please read the documents in /test/doc/