Skip to content

delavago/sample-api-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get Started

There are a few things you have to get installed bfore you can run this very basic API.

Pre API steps

  • make sure you have node installed, you can download node here
  • also make sure you have yarn, you can download yarn here
    • yarn is just like npm so you can use either yarn or npm. npm come with node while yarn has to be installed

Running the API

  • Open the api folder in VSCODE or any text editor of your choice (not notpad ++ for god sake)
  • in a terminal/cmd/powershell window open the folder directory and run the following command
    • yarn install if your using yarn like me
    • npm install if your using npm which is fine also
  • Now you can run the API with the following command
    • yarn start or npm start

Using the api

There are a few things we still need to get installed to get to interact with the API we need some sort of software for now that we can use to interact with the API routes below i listed 2 options:

  • Postman can be downloaded from here
  • Insomnia can be downloaded from here

Either of the listed options can be used.

Navigate to to routes/users.js in the folder for more notes

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published