This is a simple user RESTful api with a client that I've written for Ryde technical challenge. The main libraries used in this project are: Next.js (for client
), Express.js (for users
api), mongoose (for interaction with MongoDB).
To run the code please follow the following steps:
-
Install npm.
-
Clone the repository.
git clone https://github.com/benitokun123/Ryde-Backend-Challenge.git
- Inside your local repository, install required dependencies in the
users
folder and in theclient
folder using this command:
npm install
-
Put the
config.env
file into theusers
folder. For details of theconfig.env
file, please contact me at [email protected]. -
Go to the
users
folder, run:
npm start
- Open another terminal, go to the
client
and run:
npm run dev
-
You should be able to see the
client
running on http://localhost:3001 and theusers
backend running on http://localhost:3000/api/user. -
For details of the
users
api, refer to this documentation. -
Help me proceed to the second round interview 😉.