Open mohamed-ali-amaira opened 3 years ago
Hi ;). It doesn't seem related to the project but more with the credentials you use to connect to your database.
Look at this for example: https://stackoverflow.com/questions/55038942/fatal-password-authentication-failed-for-user-postgres-postgresql-11-with-pg/55039419
So be sure that the credentials you use to connect to the postgres database are correct ;).
It would be really nice to walk me through the process of cloning and setting the app from scratch on windows cuz I am frankly a beginner and I struggled for a day or so, thanks for your fast response you are a huge inspiration
I need especially a sql query to create the tables, if possible I want something compatible with postgresql, if there is another way to create the tables using typescript that would be really awesome
It's been a little while since I worked on this project but you have some migrations to run in order to create the tables in the database. You will have to change some configurations files first. I will try to update the README, to explain how to start with this repo ;).
Will try to work on it tomorrow if I can.
But notice that it's not finished yet ;).
Here are the steps to clone the repository and to get started
git clone https://github.com/ips-coding-challenge/challenge_twitter.git twitter_clone
npm install
It could take some time as the project needs puppeteer for scrapping ;)
create a .env.development file in the folder root
PORT=3000
JWT_SECRET=azeazeazezaezae
DB_HOST=YOUR_DB_HOST
DB_NAME=YOUR_DB_NAME
DB_USER=YOUR_POSTGRES_USER
DB_PASSWORD=YOUR_POSTGRES_PASSWORD
You may need to install knex globally if you don't have it
npm install knex -g
knex migrate:latest --env development
knex seed:run --env development
npm run dev
Go to localhost:4000 ( Change the port accordingly to your configuration ) and you will have access to the GraphQL playground
If you have any questions, feel free to ask ;)
Hi sir,
I really like your cool coding project, but when cloning it locally and trying to run it I am faced by this error everytime when I want to register :
the request I am sending is in the graphql playground and it is the following :
I would really appreciate it if you could help me