Reac.js & Express.js appication for searching Star Wars characters using SWAPI.
Watch it in Action: (screen capture .gif)
Data transformation and SWAPI api calls happen on the server side in server/service/swclient.js module. Goolge Image Search API have also been used to retreive relevant images according to the search.
-
Cloning the repository
#Clone this repository: $ git clone https://github.com/IceProgrammer15/SWAPI-Buddy.git
-
Starting the server
#Go into the repository/server folder $ cd SWAPI-Buddy/server #Install dependencies $ npm install #start the server npm start
Server will be running on port 5000 by default
- Running the client
#Go into the repository/client folder $ cd SWAPI-Buddy/client #Install dependencies $ npm install #Start the client app npm start
Keep both Client and Server app running. Front-end will use the server via local proxy
4-Visit: http://localhost:3000
Install dependencies for both client and the server as explained in previous section.
Gulp is required to build the project
#Go into the repository/client folder
$ cd SWAPI-Buddy/client
#run build-all script
$ npm run build-all
After successful build, server folder will have all the necessary files (both front-end and back-end).