Server version to flash-cards project
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
- 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,
https://flash-cards-server2.herokuapp.com
GET
/flashCards/getByType
Post
/flashCards/createOne
Body | Type | Description |
---|---|---|
language |
string |
Required. |
difficult |
string |
Required. |
question |
string |
Required. |
answear |
string |
Required. |
Post
/flashCards/type/difficult
Body | Type | Description |
---|---|---|
difficult |
string |
Required. |
Post
/flashCards/type/language
Body | Type | Description |
---|---|---|
language |
string |
Required. |
Post
/users/login
GET
/users/one/:id
GET
/users/all
POST
/users/checkIsadmin
IN PROGRESS
POST
/users/register
Body | Type | Description |
---|---|---|
username |
string |
Required. |
password |
string |
Required. |
email |
string |
Required. |
POST
/users/code
Body | Type | Description |
---|---|---|
code |
string |
Required. |