this is the backend of the project entitled as SUURA
The project is using Mongodb
brew tap mongodb/brew
brew install mongodb-community@4.2
// For UNIX
- yarn start:db
- npm run start:db
// You will have to open another terminal to keep this connection alive
- Create account on MongoDB Atlas and follow the set-ups
- copy the database URL and paste it in
.env
by following.env.sample
npm install
yarn
Edit your .env
by following the example from .env.example
// Production
npm start
yarn start
// Development
npm run start:dev
yarn start:dev
It is recommended to use Local MongoDB
for speed sake during test,
first start your local mongodb, yarn start:db
and then, to run test simply do:
yarn test
npm test
NOTE that: Test should use different database with development
or production
, follow .env.sample
- open
localhost:4000/suura
in your browser. activated only during development. - NOTE that:
Uploading files
usesNormal REST API
specifications, you callPOST:/upload
- GraphQL
- MongoDB
- Apollo server Express
- Mongoose
- Express
License MIT Copyright © 2020 Frank Mutabazi