8000 GitHub - DavidMatalik/express-api-blog
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

DavidMatalik/express-api-blog

Repository files navigation

Project Title

API Express Blog

Description

This project aims to create a backend with a restful api which can be consumed by different frontends.

Get Started

  1. Clone project locally e.g. via ssh.
git clone git@github.com:DavidMatalik/express-api-blog.git
  1. Install dependencies.
npm i
  1. Setup your own mongo DB, e.g. through following these instructions.

  2. Create a .env file in the root of your project. Put there the link of your mongoDB. If you followed instructions from point 3, you can get the link from point 10 - 12. The entry should have the following format.

MONGODB_URI='mongodb+srv://<username>:<password>@cluster0.l45nfrv.mongodb.net/?retryWrites=true&w=majority'
  1. Start the server.
npm run serverstart
  1. Test your app via curl or e.g. postman.
# GET REQUEST
http://localhost:3000/posts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0