Make company global travel and accommodation easy and convenient for the strong workforce of savvy members of staff, by leveraging the modern web.
The instructions below will get you a copy of the project up and running on your local machine for development, further contribution and testing purposes.
Software to have locally on your computer for you to run this project
Install Postgres Database
Install NodeJs
Clone the repository
git clone https://github.com/andela/devrepublic-bn-backend.git
Install all the project's dependencies
Run npm install
-
create a
.env
file in the root directory -
copy the variable from the
env.example
into the.env
and give them values
create development database and test database
Connect the project to Postgres development database by adding the db into .env file
DEV_DATABASE_URL=postgres://{db_username}:{db_password}@{host}}:{port}/{databaseName}
Connect the project to Postgres test database by adding the db url into the .env file
TEST_DATABASE_URL=postgres://{db_username}:{db_password}@{host}}:{port}/{testDatabaseName}
specifiy your database username
, database Password
, host
, port
and your created database name
run the following script in order to create migration
npm run create
To undo migrations run the following script
npm run drop
to seed data into the database run the following script
npm run seed:dev
To run all the above scripts all together and start the server at the same time this script will do it together
npm run reset:dev
In your terminal
Run npm test
In your terminal
npm run build
In your terminal
npm run dev
- Jim Ntare - Ntare22
- Jean Bien-Aime Byiringiro - bbaime98
- Jean Pierre Baraka Mugisha - Baraka-Mugisha
- Izzedin Serge Ishimwe - izzett222
- Andela Simulations Program
- Samuel Nishimwe
- Caroline Nkirote
- Samuel Munyili