An app to help you find something to do in the city of Tampere e.g., when you are travelling for a business and have an evening to spend, or you are looking for something new or different to do
A git branch should start with a category. Pick one of these: feature, bugfix, hotfix, test and docs.
Including Jira (or other Project Management Tool) ticket numbers
For example: if we have ticket number 1 with the title "Create an API for selecting and storing user personal interests" so the branch should be: feature/Create-an-API-for-selecting-and-storing-user-personal-interests
TurnUp server is using AWS Amplify with GraphQL and DynamoDB. The server is designed to work independently from the frontend.
Make sure that the environment is correct and latest changes are pulled.
When using the server with the frontend, make sure that in the frontend is correctly configured (AWS Amplify). Verify also that the environment in the frontend matches the server's environment.
In frontend you can use same commands than in backend. (Do not edit the backend from the frontend or generate unnecessary files)
npm install -g @aws-amplify/cli
aws configure
amplify pull --appId YOUR_APP_ID --envName YOUR_ENV_NAME)
amplify pull
amplify push
amplify mock
amplify env add
amplify env checkout ENVIRONMENT_NAME
amplify env list
amplify pull
$ amplify pull
╭────────────────────────────────────────────────────────────╮
│ │
│ Update available: │
│ Run amplify upgrade for the latest features and fixes! │
│ │
╰────────────────────────────────────────────────────────────╯
? Select the authentication method you want to use: AWS access keys
? accessKeyId: ********************
? secretAccessKey: ****************************************
? region: eu-north-1
? Which app are you working on? d2ormrrtjqw2j9
? Pick a backend environment: dev
? Choose your default editor: Visual Studio Code
√ Choose the type of app that you're building · javascript
Please tell us about your project
? What javascript framework are you using react
? Source Directory Path: src
? Distribution Directory Path: dist
? Build Command: npm run build
? Start Command: npm run start
✅ GraphQL schema compiled successfully.
Edit your schema at C:\Users\anhmi\OneDrive\Desktop\minh-2023\TurnUp\amplify\backend\api\turnup\schema.graphql or place .graphql files in a directory at C:\Users\anhmi\OneDrive\Desktop\minh-2023\TurnUp\amplify\backend\api\turnup\schema
⚠️ Unable to successfully configure component generation for GraphQL. This will impact generaating forms and components bound to your data models.
⚠️ Run 'amplify update codegen' to ensure GraphQL configurations for your project are correctt.
? Do you plan on modifying this backend? Yes
| Building resource api/turnup✅ GraphQL schema compiled successfully.
Edit your schema at C:\Users\anhmi\OneDrive\Desktop\minh-2023\TurnUp\amplify\backend\api\turnup\schema.graphql or place .graphql files in a directory at C:\Users\anhmi\OneDrive\Desktop\minh-2023\TurnUp\amplify\backend\api\turnup\schema
✔ Successfully pulled backend environment dev from the cloud.
✅
✅ Successfully pulled backend environment dev from the cloud.
Run 'amplify pull' to sync future upstream changes.
✅ GraphQL schema compiled successfully.
Edit your schema at C:\Users\anhmi\OneDrive\Desktop\minh-2023\TurnUp\amplify\backend\api\turnup\schema.graphql or place .graphql files in a directory at C:\Users\anhmi\OneDrive\Desktop\minh-2023\TurnUp\amplify\backend\api\turnup\schema
⚠️ Unable to successfully configure component generation for GraphQL. This will impact generaating forms and components bound to your data models.
⚠️ Run 'amplify update codegen' to ensure GraphQL configurations for your project are correctt.
npm install
to install the project dependencies.npm run dev
to start the development server. Your application will be available at http://localhost:3000
.npm run dev-local
to start the development server with local AWS Amplify backend.npm run build
to create a production build of your application.npm run preview
to serve the production build locally for review. Your application will be available at http://localhost:8080
.Before merging your code into the dev
or main
branch, make sure to format your code by running:
npm run format
This ensures consistent code style across the project.
/pages
: This directory contains the pages of the application./components
: Place the reusable React components here./stores
: This directory contains the store for state management./translations
: Currently, it has translations for English and Finnish languages.create a .env file with command cp .env.example .env
add the secret values from different channels. eg: discord or a password management system
The base URL for the API is: https://l199cimgf2.execute-api.eu-north-1.amazonaws.com/dev
eventId
eventId=123
limit
limit=10
offset
offset=20
nameSearch
nameSearch=concert
startDate
startDate=2023-01-01
endDate
endDate=2023-12-31
userLat
and userLon
userLat=61.4978
(Tampere latitude)userLon=23.7610
(Tampere longitude)radius
userLat
and userLon
parameters.radius=50
(within 50 km of the user's location)Note: When using the radius
parameter, you must also provide userLat
and userLon
.
GET https://l199cimgf2.execute-api.eu-north-1.amazonaws.com/dev?eventId=123&userLat=61.4978&userLon=23.7610&radius=50
This project is developed and maintained by Tampere University students and is licensed under the MIT License.