A REST API for communicate web ui, data crawler and nlp service. Uses collections of basic practices: Auth, Security, RESTful resources, API docs, Input validation, Error handling and Logging.
Uses PostgreSQL as its database and makes authentication with (jwt).
- Express
- PostgreSQL
- Bcryptjs
- Cors
- JsonWebToken
- Sequelize
- Dotenv
- Moment.js
- Nodemon
- Node-postgres
- Pg-hstore
- Yup
- Winston
- Docker
Clone this repository and install dependencies
> git clone https://github.com/muratdemirci/palantir-be.git
> cd palantir-be
> npm install
> npm run dev
> npm run start
> cd palantir-be
# Run your docker compose
> docker-compose up
POST http://localhost:8090/api/v1/auth/register
curl -i -H 'Accept: application/json' -d 'name=Murat&email=murat@email.com&password=123456' http://localhost:7000/thing
HTTP/1.1 201 Created
Date: Sun, 18 Sep 2022 12:36:31 GMT
Status: 201 Created
Connection: close
Content-Type: application/json
Location: /thing/2
Content-Length: 35
{"Message": "User registered successfully!",
"User": {
"id": 20,
"name": "murat",
"email": "murat@email.com",
"password": "$2a$08$CXOpWkxshXJAAxePnAi.7Ofk.M5TkqBT4KUCj84k7kAzjGspgdCt2"
}}
POST http://localhost:8090/api/v1/auth/login
curl -i -H 'Accept: application/json' -d 'email=murat@email.com&password=123456' http://localhost:7000/thing
HTTP/1.1 201 Created
Date: Sun, 18 Sep 2022 12:36:31 GMT
Status: 201 Created
Connection: close
Content-Type: application/json
Location: /thing/2
Content-Length: 35
{"id": 18, "username": "murat", "email": "murat@email.com" "accessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MTgsImlhdCI6MTY2MzQ4NDc1MiwiZXhwIjoxNjYzNTcxMTUyfQ.4amnyq5wGJTxCwtd22S0uioBg7vByH2pia2xMlWXl-c"}
Palantir is a micro-saas project which is analyses tweets of crypto influencers to predict the direction of the market.
This project was made for Teknasyon Hackathon '22 - Yüzük Kardeşliği.
We took 2nd place among 13 teams.
MIT