Official repo of getbike.online - second hand bikes, equipment, tools and services
- Sketch
- Node.js
- Express.js
- Apollo Server
- GraphQL
- Sequelize (ORM)
- PostgreSQL (previously MongoDB)
- Jest
- React
- Next.js (Server Side Rendering)
- Styled Components
- Redux
- Apollo Client
- Jest
- Create PostgreSQL databases named 'getbike' and 'getbike_test'
cd ./backend
to move to the backend directoryyarn
to install the dependenciesyarn server
to start the development server (doesn't run the seeder)yarn server:test
to start the development server with test DB(runs the seeder)yarn test
to run the tests (needs to have running test db)
To repeat testing first restart test server by closing current test server and executingyarn server:test
and then runyarn test
again.- Optionally you can run
yarn seed
oryarn seed:test
to seed development or test database.
cd ./frontend
to move to the frontend directoryyarn dev
to run the development serveryarn build
to build the projectyarn start
to run the previously built project