Skip to content

Singebob/grasbook-post-api

Repository files navigation

Welcome to post-api 👋

Version Documentation Maintenance License: ISC

This project was created for a school project

Project Gras-Book

Install

npm install

Usage

copy .env.sample to .env and fill it with the environnement informations.

npm run dev

Informations for environnement variable:

NAME DESCRIPTION TYPE
PORT The port of your local server INT
HOST The host of your local server STRING
DB_PORT The port of your database server INT
DB_HOST The host of your database server STRING
DB_USER The admin user of your database STRING
DB_PASSWORD The admin's password STRING
DB_NAME Your database's name on your server STRING
DB_POOL_MAX The maximum pool of your database INT
REQUESTED_RANGE The size of the requested range for 416 INT
MAX_RANGE Max range available for 416 response INT
CONTENT_SIZE The size of the requested content INT
SCALEWAY_ACESS_KEY The A.key of the SCWL O.Storage service STRING
SCALEWAY_SECRET_KEY The S.key of the SCWL O.Storage service STRING
SCALEWAY_ENDPOINT The End. of the SCWL O.Storage service STRING
SCALEWAY_REGION The Rgion of the SCWL O.Storage service STRING
SCALEWAY_BUCKET_NAME The B.Nme of the SCWL O.Storage service STRING
KEYCLOAK_PROTOCOL The protocole to contact keycloak STRING
KEYCLOAK_DOMAIN The domaine name or ip adresse STRING
KEYCLOAK_REALM The realm of client STRING
KEYCLOAK_CLIENT_ID The client id for keycloak STRING
KEYCLOAK_CLIENT_SECRET The client's secret STRING

Run tests

npm run test

Docs

When your api is start, you can check:

http://<yourHost>:<yourPort>/documentation

Author

👤 Jeremy Chauvin

Others participants

🤝 Contributing

Contributions, issues and feature requests are welcome!
Feel free to check issues page.

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2019 Jeremy Chauvin.
This project is ISC licensed.


This README was generated with ❤️ by readme-md-generator

About

Recreating a facebook-like app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages