GithubHelp home page GithubHelp logo

mah-dir / form-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.74 MB

๐Ÿ’ป A full-stack application using React and Express that lets users create and store JSON data for their website, or back-end projects.

JavaScript 93.99% HTML 4.53% CSS 1.48%

form-server's Introduction

form-server

Build Status Coverage Status Test Coverage

A full-stack application using React and Express that lets users create and store JSON data for their website, or back-end projects. Users are given an API key for each of their "Projects" and can send POST requests to add new data. You can see this project here: Link.

Installing

yarn

Set up CONNECTION_STRING for PostgreSQL and SESSION_SECRET for use in sessions. Put them in a .env file.

Basic Usage

After logging in users can create a Project in the "Projects" tab on the dashboard. They can then go to the find their API key in the "Your API Key" tab.

It should look something like this https://jsonstor3.herokuapp.com/private/v1/0ada1f6538dfdf2fd53e316a3282a48b0884db3a6fed1f74

Any form of valid json can be sent and it will be stored to the database. On successful storage the server will return "Successfully stored to JSONstore: default". To specify a form you can add a string to the end of the url like this https://jsonstor3.herokuapp.com/private/v1/0ada1f6538dfdf2fd53e316a3282a48b0884db3a6fed1f74/profile. On success server will return "Successfully stored to JSONstore: profile."

All data can be downloaded in under the "Manage" tab. Users can download forms seperatly or all at once. As project data grows users can see how much space they are using under the "Projects" tab.

Scripts

yarn start 
# Start app without nodemon

yarn startdev
# Starts app with nodemon

yarn lint
# run eslint

yarn runQuery
# Initializes the database (but also clears it)

yarn test
# Runs all tests in test file

form-server's People

Contributors

mah-dir avatar dependabot[bot] avatar

Watchers

James Cloos avatar  avatar

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.