FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

QingpingMeng/medium-clone-api · GitHub

Repository files navigation

Serverless Typescript + Mongodb implementation for RealWorld example

Example Serverless Typescript codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld API spec.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

Installing

check out the repository

https://github.com/QingpingMeng/medium-clone-api.git

install dependencies

yarn install

start a local mongodb instance

yarn add mongodb -g
mongod --dbpath=<db-path>

run serverless offline:

yarn start

Running the tests

A few tests will fail for some reasons. PRs are welcome.

yarn test

Deployment

Create a env file called env.yml with the following content for deployment.

prod:
  db: <your-db-connection-string>

And run deployment command.

yarn deploy

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

No description, website, or topics provided.

Resources

Stars

12 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages


Back | FazBrowse Home | New Git URL