This is a project for the course of Software Engineering at Youcode Safi. The project is a mobile application for the management of electric scooters. The application is developed using the React Native framework and Expo. The application is divided into two parts: the client and the server. The client is the mobile application, while the server is a REST API that manages the data of the application. The server is developed using the Node.js framework and the Express.js library. The database used is MongoDB.
npm install -g expo-cli
expo init your app
expo start
or
npx create-expo-app your app
npm run web
npm i react-native-onboarding-swiper
npx expo install jest-expo jest
Then, update package.json to include:
"scripts": {
...
"test": "jest"
},
"jest": {
"preset": "jest-expo"
}
and run render with your version of react in this case 18.1.0
npm i react-test-renderer@18.1.0
-Configuration A starting configuration you can use is to make sure any modules you are using within the node_modules directory are transpiled when running Jest. This can be done by including the transformIgnorePatterns property that takes a regex pattern as its value:
```
"jest": {
"preset": "jest-expo",
"transformIgnorePatterns": [
"node_modules/(?!(jest-)?react-native|react-clone-referenced-element|expo(nent)?|@expo(nent)?/.*|@unimodules/.*|unimodules|sentry-expo|native-base)"
]
}
```
for more information about testing with jest click here
create a Dockerfile in the root of the project create a .dockerignore file in the root of the project
for build the image
docker build -t nameOfyourImage .
for run the image
docker run -p 5000:5000 -it nameOfyourImage