Skip to content

matek075/flash-cards_server

Repository files navigation

flash-cards_server

Server version to flash-cards project

Table of contents

Run Locally

Clone the project

  git clone https://github.com/Reckit075/flash-cards_server.git

Go to the project directory

  cd flash-cards_server

Install dependencies

  npm install

Start the server

  npm start

Tech Stack

  • cors v 2.8.5
  • express v 4.17.1
  • mongoose v 5.9.20
  • nodemailer: v 6.4.10,
  • jsonwebtoken: v 8.5.1,
  • nodemon v 2.0.4
  • dotenv: v 10.0.0,

Live

https://flash-cards-server2.herokuapp.com

API Reference

Get flashCards by type

  GET
/flashCards/getByType

Create flashCard

  Post
/flashCards/createOne
Body Type Description
language string Required.
difficult string Required.
question string Required.
answear string Required.

Create flashCard difficult type

  Post
  /flashCards/type/difficult
Body Type Description
difficult string Required.

Create flashCard language type

  Post
  /flashCards/type/language
Body Type Description
language string Required.

Login user

  Post
  /users/login

Get one user

  GET
  /users/one/:id

Get all users

  GET
  /users/all

Check user is admin

  POST
  /users/checkIsadmin

IN PROGRESS

Register user step 1 (after this step server send email to user)

  POST
  /users/register
Body Type Description
username string Required.
password string Required.
email string Required.

Register user step 2 (in this endpoint user type code gain in email to complete registration)

  POST
  /users/code
Body Type Description
code string Required.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published