Hello, tudo joia? This project, based on a selective test by the company Redfox, was a challenge that I set myself to test my skills as a developer. From an excel file containing a list of pokemons, I created a pokedex site where the user can view all pokemons and their attributes in a friendly interface. The pokedex site also allows the user to search, delete and create a pokemon.
For the development, I used Node.js, Express.js, Typescript and PostgreSQL
Pre-setup:
- Be sure you have docker/docker-compose and yarn (or npm, if you use it) installed.
- Clone the repository by running
git clone https://github.com/MatheusDalia/teste-desenvolvimento-web.git
Server setup:
- In the server folder, install all the dependencies by running
yarn install
# or
npm install
- Create a .env file and copy the following content to it:
# ###### GENERAL SETTINGS #######
PROJECT_NAME=pokemon
# ###### SERVER SETTINGS #######
SERVER_PORT=3001
# ###### DATABASE SETTINGS #######
DATABASE_HOST=pokemon-db
DATABASE_TYPE=postgres
DATABASE_PORT=5432
DATABASE_USER=postgres
DATABASE_PASSWORD=docker
DATABASE_DB=citiplus
# ###### TEST DATABASE SETTINGS #######
DATABASE_TEST_HOST=localhost
DATABASE_TEST_PORT=5433
DATABASE_TEST_USER=postgres
DATABASE_TEST_PASSWORD=docker
DATABASE_TEST_DB=citiplus-test
- To run the development server, run
docker-compose up
- To run the migrations, open your .env, and change your DATABASE_HOST to this:
DATABASE_HOST=localhost
- On a new terminal, run:
yarn migration
- Switch your .env DATABASE_HOST back to this:
DATABASE_HOST=pokemon-db
- Now the server should be running!
Client setup:
Go to https://github.com/MatheusDalia/pokedex-client.git and follow the instructions.
- Matheus Dalia - Front-end/Back-end developer - MatheusDalia