Skip to content

An API write in typeScript using node.js, express.js and working with MongoDB. The API give an amount chosen of exercices sort by muscle group worked, with some additional details use for a web project which interprets these data

Notifications You must be signed in to change notification settings

l-busca/EXA_Sport-typeScript-REST-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EXA Sport API

Generate your custom sport program (only in french actually)

1.1

This is an API write in typeScript using node.js, express.js and working with MongoDB. The API give an amount chosen of exercices sort by muscle group worked, with some additional details use for a web project which interprets these data

Installation:

1. Clone the repository
$ git clone https://github.com/l-busca/Sport-program-typeScript-REST-API.git
2. Import all the dependencies
$ npm install
3. Compile the typeScript "api.ts" file
$ tsc api.ts --strict
4. Launch the .js file
$ node api.js

You can't add data with post request in the actual version but new features are coming, and a sample data is available on the repository, you just have to import it in your MongoDB database.

Example:

https://www.your_domain/exa/20

You will get 20 exercices sort by muscles group (these data will be interpreted in a new project very soon)

https://www.your_domain/exa

Get all the exercices actually available in the database

About

An API write in typeScript using node.js, express.js and working with MongoDB. The API give an amount chosen of exercices sort by muscle group worked, with some additional details use for a web project which interprets these data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published