A Node.js server to connect to Amara API so we can avoid CORS policy.
Navigate into the amara-api-proxy
directory
cd amara-api-proxy
Install npm dependencies
npm i
Start the server
npm start
This proxy api has the following structure:
root
├ ├── middlewares
├ ├── models
├ └── schemes
├ └── amara-users.db
├ ├── routes
├── utils
└── package.json
-
middlewares: Custom middlewares folder.
-
models: Object models folder.
-
schemes Schemes directory containing the database
- amara-users.db: sqlite database with amara demo user accounts to try out the prototype.
-
routes: Routes folder connecting to Amara API or sqlite user database.
-
utils: Helper files.
-
package.json: Main npm configuration file.