Skip to content

devcareer/code-jammers-backend

Repository files navigation

Actions Status Maintainability Coverage Status

Know Africa

An information and fact-based web application about Africa. Africa isn't a country. Africa is a continent with 54 independent countries.

The technologies used in creating this project are:

JavaScript, Node.js, ExpressJs, Sequelize ORM, PostgreSQL, Git, Github Actions, Code Climate, Coveralls, Pivotal Tracker, Docker, Swagger

🚀 How to get started

  • Make sure to have Git and Node.js installed on your computer
  • You can use this link to clone the project: https://github.com/devcareer/code-jammers-backend.git
  • cd into the project and run npm install
  • create a .env file and the contents in the sample file to it.
  • Run npm run start-dev to start the server and npm test to run the test suites

Note: To test the APIs using Heroku, use the above Heroku Link.

Then to test it through a container(docker), follow the following steps:

  • Make sure to have Git and Node.js installed on your computer
  • You can use this link to clone the project: https://github.com/devcareer/code-jammers-backend.git
  • cd into the project and run npm install
  • create a .env file and the contents in the sample file to it.
  • Run docker-compose up
  • Run docker-compose run web npm run migration
  • Run docker-compose run web npm run seeder
  • To run tests docker-compose run web npm run test
  • To shut down the container docker-compose down

Sample .env file format

DATABASE_URL = postgres://<username>:<password>@localhost:5432/<prod-db>
DEV_DATABASE_URL = postgres://<username>:<password>@localhost:5432/<dev-db>
TEST_DATABASE_URL = postgres://<username>:<password>@localhost:5432/<test-db>
JWT_KEY = secret
SENDGRID_API_KEY= <sg-api-key>
SENDGRID_EMAIL = <sg-email>
NODE_ENV = development
GOOGLE_CLIENT_ID = 732603686075-gjth9b4tsh2qba48eh7mn7plcsjbfn4v.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET = ledPWdG3zGMCMzQ7wQvSvXyg
GOOGLE_CALLBACK_URL_SIGNIN = http://localhost:3000/auth/google/signin
GOOGLE_CALLBACK_URL_SIGNUP = http://localhost:3000/auth/google/signup
COOKIE_KEY = cookieKey

Software Engineers / Mentees

  • Fiyin Akinsiku
  • Ufuoma Ogodo
  • Godspower Uche
  • Bernard Namangala
  • Donald Agbakoba
  • Bislon Zulu
  • Augusta Ehihebolo
  • Francis Xavier Abonyi
  • Oyindamola Abiola

Author & Mentor

  • Funmilayo Olaiya.

Acknowledgements

  • DevCareer

To Contact Us:

codejammers1@gmail.com

License:

This project is available under the MIT license.

About

Know Africa is a project based on correcting misconceptions about Africa by providing up-to-date information and showcasing the diversity of the continent.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published