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
usersfolder and in theclientfolder using this command:
npm install
-
Put the
config.envfile into theusersfolder. For details of theconfig.envfile, please contact me at tranminhduong279@gmail.com. -
Go to the
usersfolder, run:
npm start
- Open another terminal, go to the
clientand run:
npm run dev
-
You should be able to see the
clientrunning on http://localhost:3001 and theusersbackend running on http://localhost:3000/api/user. -
For details of the
usersapi, refer to this documentation. -
Help me proceed to the second round interview 😉.