roads-starter
TypeScript icon, indicating that this package has built-in type declarations

2.3.1 • Public • Published

roads-starter

Getting Started

Trying the example

  1. Pop open the config folder and make duplicates of every file in there. Remove the word "example" from the copies.
  2. In each of those new non-example files, fill in the appropriate values.
  3. From the example folder run ./docker-compose.sh up to test the example

Building a new project

  1. Copy the contents of the example folder to a new project
  2. Create a package.json file with a dependency on roads-starter (remember to make it private if you need to!)
  3. Update all ../index.js references (such as the one in server.js) to reference roads-starter
  4. Pop open the config folder and make duplicates of every file in there. Remove the word "example" from the copies.
  5. In each of those new non-example files, fill in the appropriate values.
  6. Run ./docker-compose.sh up to test the copied example
  7. Add new API routes in the API folder and reference them via server.js.
  8. Add new web routes in the privateRoutes.js (for routes that access private data or endpoints) or publicRoutes.js (for routes that can safely be sent to the client and executed in the browser)

Readme

Keywords

none

Package Sidebar

Install

npm i roads-starter

Weekly Downloads

1

Version

2.3.1

License

MIT

Unpacked Size

104 kB

Total Files

63

Last publish

Collaborators

  • dashron