This is express-react-typescript application
This is anyFin backend API server.
- Go to backend root and run
$ npm install
;
- dbname:'anyfin,
- dbuser: 'tony,
- password: 'password'
- To crate database:
use anyfin
. - To create user run:
db.createUser({user:"tony",pwd:"password",roles:[{role:"readWrite",db:"anyfin"}]})
- Update
FIXER_ACCESS_TOKEN
at in backend/credentials.ts file - To run backend:
npm start
- If cannot register or login then place this code inside server.ts file right after db coonection if cant able to register or login.
const userSchema = new mongoose.Schema({ email: String, name: String, password: String});
export const userModel = mongoose.model<User & mongoose.Document>('User', userSchema);
- To test backend:
npm test
- API endpoint:
{host}:{port}/api/
This is anyFin front UI components.
##$ To Setup:
- Go to frontend root and run
$ npm install
; - To run frontend:
npm start
- Routes:
{host}:{port}/ and {host}:{port}/countries