Skip to content

lucasdeassis/posts-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

NodeJS POSTS API

This is a the Node.js Posts API.

Stack

  • Node.js 8.11
  • Express 4.14
  • Mongoose 5.0

How to run

before all, download and install mongodb in your user folder and run

$ ~/mongo/bin/mongod --dbpath ~/mongo-data/

to start the mongo daemon.

Now you have mongodb running in order to connect using the repository. The API runs on a mongo database locally named PostsApp.

Right after, issue:

$ yarn install && yarn start

Then, you'll see the host and port server message listening at port http://localhost:8080

And that's it! consume the API and see the results!

To run tests, type:

$ yarn test

To run the linter, try yarn lint

Check out the example folder at /example

About

API to provide user registration and post creation

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors