Git Product home page Git Product logo

vscode-stories-api's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

vscode-stories-api's Issues

Hosting

Hey man,

First of all, awesome project!

You mentioned you run on Azure credit, which will run out eventually.
I've got a spare VPS I can make available for this project, let me know if you are interested :)

how to start server -> docker / docker-compose

I installed postgres and created a stories db. User fernandob has superuser privileges.
I created github OAuth and placed those inside .env

   Name    |   Owner   | Encoding |   Collate   |    Ctype    |   Access privileges   
-----------+-----------+----------+-------------+-------------+-----------------------
 fernandob | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 postgres  | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 stories   | fernandob | UTF8     | en_US.UTF-8 | en_US.UTF-8 | 
 template0 | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |           |          |             |             | postgres=CTc/postgres
 template1 | postgres  | UTF8     | en_US.UTF-8 | en_US.UTF-8 | =c/postgres          +
           |           |          |             |             | postgres=CTc/postgres

stories=# \conninfo
You are connected to database "stories" as user "fernandob" via socket in "/var/run/postgresql" at port "5432".

Running dev, I've changed db creds on .env, but I am not so sure if those are needed as it does the same thing. I had fernandob as a default user without password, and then I set a password too, but same outcome.

[INFO] 19:32:16 ts-node-dev ver. 1.0.0 (using ts-node ver. 9.0.0, typescript ver. 4.0.5)
about to connect to db, host:  ignore
(node:1212232) UnhandledPromiseRejectionWarning: error: password authentication failed for user "fernandob"

Is there any other info I need to put on .env to connect to stories db?

I would like to create an intellij version by relying on this api

I would like to contribute to this cool extension by expanding the idea to cover IntelliJ.
I can go from scratch but it would be great to have the same back end (same logic, culture, and policies), therefore the stories of both platforms will be shared together.
So is the back end limited only to Vscode or is it reusable? @benawad

"Failed to fetch"

I've just installed it and every time I try to open the stories box (both presents this problem) a VS notification tell me "Failed to fetch".

Add NSFW filter to usernames.

Relates to ide-stories/vscode-stories#22 however this issue is in the wrong API cc @benawad @HariAcidReign @YashMunjal

Acceptance Criteria

  • Profanity filter on usernames has some tests
    -- The tests could be quite a fun test run "When some pillock tries to set username as Sh1tbagDeveloper"
  • Find a library off the shelf ideally that has an epic filter over a regex ideally...

Implementation notes

  • There are ways to implement unsafe regex so this must be considered for security scrutiny when the PR is open.
  • Might be worth "upping" the rate limiting (if there is any) on setting a username to prevent somebody trying a dictionary/wordlist of profanity.

Don't hard-code the database name

From the README.md :

  1. Create a database called stories

I think it would be best to avoid hard-coding database names and use the .env file instead.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.