Make company global travel and accommodation easy and convenient for the strong workforce of savvy members of staff, by leveraging the modern web.
For API documentation, please visit Barefoot Docs
-
Open your terminal
-
Run
clone https://github.com/andela/team-odd-bn-backend.git
OR Download the project
-
rename a
.env.example
to.env
file -
Then add the values to all environmental variables in
.env
file -
Install postgres
-
When the server is running, create a database on your new PG server. Ensure your new development database is the same name as your
barefoot_nomad_dev_db
and your test database is the same name asbarefoot_nomad_test_db
environment variables -
Ensure you have Postgres running
In your terminal:
-
Run
npm install
to install all dependencies -
For Testing: run
npm run test
-
Drop Tables run
npm run dropTables
to make sure you have update changes -
Migrate database
npm run db-migrate
-
Then populate db with seed data, run
npm run db-migrate-dev
-
For Development: run
npm run dev-start
-
Access
http://localhost:<:APPLICATION_PORT>
(by default, the port is3000
) in Postman, if app is running correctly, you will get a response with a message:{ "message": "Welcome to Barefoot Nomad." }
Team-odd