- React
- Express
- RestAPI
-
Clone the repository
git clone https://github.com/tomaszbujnicki/react-rick-and-morty.git
-
Install dependencies for server
npm install
-
Install dependencies for client and build static files
npm run build
-
Run the Express server
npm start
-
Open your browser
Server listening on 3001
Pages | Routes (with example params) | Description |
---|---|---|
Home | root | Home page with random content |
Search | root/search/character/name/Rick | Search results |
Characters | root/characters | List of all characters |
Locations | root/locations/4 | List of all locations |
Episodes | root/episodes | List of all episodes |
Character | root/character/1 | Single character page |
Location | root/location/1 | Single location page |
Episode | root/episode/1 | Single episode page |