You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
suroh
246e2cc1fb
|
1 year ago | |
---|---|---|
.. | ||
controllers | 1 year ago | |
db | 1 year ago | |
middleware | 1 year ago | |
routes | 1 year ago | |
tests | 1 year ago | |
.env.template | 1 year ago | |
README.md | 1 year ago | |
express.js | 1 year ago | |
index.js | 1 year ago | |
knexfile.js | 1 year ago | |
package-lock.json | 1 year ago | |
package.json | 1 year ago | |
sockets.js | 1 year ago |
README.md
ethermap api
Backend for ethermap
Install
To install and run the backen you will need NodeJS and npm
installed, along with access to Postgresql server (possibility for this to be any database server). Then :
$ npm i
Once all the packages are installed you should setup your .env
file (follow the .env.template
). Once this has all the appropriate entries you can then connect and migrate the database.
$ npm run migrate:latest
then to run the development server you should run :
$ npm run dev
Tech
The backend is made up of a REST api and websocket server. The REST api is built on Express and the websocket server is built on socket.io.
Database interface is the ODM objection.js. This setup might not be the best as it was adopted mid-project after starting with just Knex alone.
Tests are written in Ava.