Built with NestJS framework.
Eventshuffle is an (currently imaginary) app that helps with arranging events and meetins. In the app you can create an event with multiple dates. Users can then vote for date(s) suitable for them. The app can then display the date(s) with most votes. date format is 'YYYY-MM-DD'.
- Docker V20 or newer
- Docker compose v2
Create file named .env
in the root folder
$ cp .env.example .env
Fill out the required fields, you most likely have them in your email.
$ docker-compose -f "docker-compose.yml" up -d --build
After running you can access API documentation at /api
You can add example events by running these commands:
curl -X POST http://localhost:3000/api/v1/event -H 'Content-Type: application/json' -d @exampleEvent.json
curl -X POST http://localhost:3000/api/v1/event -H 'Content-Type: application/json' -d @exampleEvent2.json
Then you can use api/v1/event/list
to find the events
Navigate to /api
to find API documentation
- NodeJS v17 or newer
- npm v8 or yarn
Navigate to the cloned repository
$ npm install
or
$ yarn install
Create .env
file as instructed before
$ npm run start
MIT