Skip to content

arrangement-io/arrangespace-server

Repository files navigation

Backend

Table of Contents

For the Backend-end side, we use JavaScript and Node JS and MongoDB. This project also support NodeJS version. See Development Set Up

Authors and Contributors

Development Setup

$ yarn install
$ export MONGODB_NAME=<db name>
$ export MONGODB_URL=[username:password@]host1[:port1][/[database][?options]]
$ export GOOGLE_CLIENT_ID=<google client id>
$ npm start

Server listening on port 3000!

To view API documentation, visit localhost:3000/docs

Running Tests

  1. Run a local instance of mongod:
$ mongod
  1. Seed the local database using the provided seed files:
$ mongoimport -d test -c users ./test/seed/users_seed.json
$ mongoimport -d test -c arrangement ./test/seed/arrangement_seed.json
  1. Run the tests:
$ npm test

Deploy to NextJS