https://github.com/borjamrd/adalab-pokemon-project
https://github.com/borjamrd/adalab-pokemon-project
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/borjamrd/adalab-pokemon-project
- Owner: borjamrd
- Created: 2023-12-11T20:39:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-19T16:38:42.000Z (over 2 years ago)
- Last Synced: 2025-04-23T16:28:24.400Z (about 1 year ago)
- Language: TypeScript
- Homepage: https://adalab-pokemon-project.vercel.app
- Size: 108 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Adalab Pokemon-Application
This project contains a fullstack application that allows you to find all of your favorite Pokemon and explore their evolutions, abilities, experience, and more detailed information!
In order to start both server and client side you must clone this repository:
```
git clone git@github.com:borjamrd/adalab-pokemon-project.git
```
navigate to the main project folder
```
cd adalab-pokemon-project
```
## Backend
To start the backend application, follow these steps:
1. Open a terminal and navigate to the backend directory:
```
cd adalab-server
```
2. In root folder, you must create a `development.env` file and add this variables in order to access the mongodb atlas database and stablish your local PORT and the BASE_URL for "next" field in the pagination:
```
NODE_ENV=development
MONGO_URI="mongodb+srv://adalab:1234@adalab-cluster.znwwmvg.mongodb.net/adalab-pokemon?retryWrites=true&w=majority"
BASE_URL=http://localhost:4500/api
HOST=localhost
PORT=4500
```
2. Install the required dependencies: `npm install`
3. Start the backend server: `npm run dev`
The backend server will start running on `http://localhost:4500`.
Check the first 20 pokemons here: `http://localhost:4500/api/pokemon`
## Frontend
To start the frontend application, follow these steps:
1. Open a new terminal and navigate to the frontend directory: `cd adalab-client`
2. Install the required dependencies: `npm install`
3. Start the frontend development server: `npm run dev`
The frontend application will be accessible on `http://localhost:3000`.