Skip to content

This project provides an persistent store for RAML files created using then embedded API Designer

License

Notifications You must be signed in to change notification settings

arthurtsang/raml-store

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RAML Store

fork raml-store. but instead of saving to mongodb, it saves to the filesystem directly.

Configuration

process.env.RAML_PORT=3000 process.env.RAML_DATAPATH=.

To use

node server.js

assuming RAML_PORT is set to 3000 and RAML_DATAPATH is set to /var/raml, access http://localhost:3000, all files in /var/raml will be listed in the designer.

Running docker container

docker run -d --name raml-store -e "RAML_DATAPATH=/var/raml" -v /var/raml:/var/raml -p 3000:3000 arthurtsang/raml-store

assuming you've checked out your RAML files to /var/raml from your git repo.

Reason doing this

instead of keeping the RAML files in a database, I'd like to keep them in github so we can perform code review without worrying about permission, merging,...

Disclaimer

the code to walk the directory is basically copied from stackoverflow

hadesbox's fork of raml-store also helps a lot

About

This project provides an persistent store for RAML files created using then embedded API Designer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%