There are a few things you have to get installed bfore you can run this very basic API.
- 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
- 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 menpm install
if your using npm which is fine also
- Now you can run the API with the following command
yarn start
ornpm start
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:
Either of the listed options can be used.
Navigate to to routes/users.js in the folder for more notes