Prello's back-end application.
Node >= 8
Npm >= 5
TypeORM = 0.11
(TypeORM is young and still under development. Breaking changes can be introduced regularly. Thus, the version is very important.)Redis >= 4.0.2
PostgreSQL >= 10
- UNIX systems (Linux or iOS) are preferred
-
Clone the github repository.
git clone https://github.com/awi2017-option1group1/Prello-back
-
Install the dependencies for development mode
npm install
-
Configure then source the
.env.dev
filesource .env.dev
-
Run the database migrations
npm run build && npm run migrations
-
To run the application in development mode (need the back-end up and running)
npm run start:dev
You should be able to see an healthcheck at localhost:5000 (if you did not change the port). See nginx installation part to finish the setup.
-
To run the application in production mode (need the back-end up and running)
npm run build && npm start
-
To run the tests (you should create the test database first)
npm test
- Prello back end application is written in
Typescript
. - It is built with
Express
. - We use
TypeORM
as ORM for the application. - To test the application we use
Jest
.
Please follow the Google Angular guidelines: Guidelines